summaryrefslogtreecommitdiff
path: root/src/FreeType/fttools.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@benzedrine.nwnk.net>2007-06-07 15:28:09 -0400
committerAdam Jackson <ajax@benzedrine.nwnk.net>2007-06-07 15:28:09 -0400
commit8c31fadabd706af63381007d666e685a66b58fd9 (patch)
tree034c274e87080c918408683e1e551f7552f128c5 /src/FreeType/fttools.c
parentfabf5458f1acbfc967bdaea3b89d707c22b97364 (diff)
Dead code cull from FreeType.
Diffstat (limited to 'src/FreeType/fttools.c')
-rw-r--r--src/FreeType/fttools.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/FreeType/fttools.c b/src/FreeType/fttools.c
index 5393558..002b62c 100644
--- a/src/FreeType/fttools.c
+++ b/src/FreeType/fttools.c
@@ -153,50 +153,3 @@ FTGetEnglishName(FT_Face face, int nid, char *name_return, int name_len)
/* Must be some font that can only be named in Polish or something. */
return -1;
}
-
-int
-FTcheckForTTCName(char *fileName, char **realFileName, int *faceNumber)
-{
- int length;
- int fn;
- int i, j;
- char *start, *realName;
-
- length = strlen(fileName);
- if(length < 4)
- return 0;
-
- if(strcasecmp(fileName + (length-4), ".ttc") != 0 &&
- strcasecmp(fileName + (length-4), ".otc") != 0)
- return 0;
-
- realName = xalloc(length + 1);
- if(realName == NULL)
- return 0;
-
- strcpy(realName, fileName);
- *realFileName=realName;
- start = strchr(realName, ':');
- if(start) {
- fn=0;
- i=1;
- while(ft_isdigit(start[i])) {
- fn *= 10;
- fn += start[i]-'0';
- i++;
- }
- if(start[i]==':') {
- *faceNumber = fn;
- i++;
- j = 0;
- while(start[i]) {
- start[j++] = start[i++];
- }
- start[j] = '\0';
- return 1;
- }
- }
-
- *faceNumber = 0;
- return 1;
-}