diff options
-rw-r--r-- | fonttosfnt.h | 1 | ||||
-rw-r--r-- | struct.c | 15 |
2 files changed, 0 insertions, 16 deletions
diff --git a/fonttosfnt.h b/fonttosfnt.h index 63852c5..5a9decc 100644 --- a/fonttosfnt.h +++ b/fonttosfnt.h @@ -165,7 +165,6 @@ BitmapPtr makeBitmap(StrikePtr, int, IndexSubTablePtr makeIndexSubTables(StrikePtr, CmapPtr); int fontIndex(FontPtr, int); CmapPtr makeCmap(FontPtr); -int findIndex(CmapPtr, int); int findCode(CmapPtr, int); BitmapPtr strikeBitmapIndex(StrikePtr, CmapPtr, int); int strikeMaxWidth(StrikePtr); @@ -390,21 +390,6 @@ makeCmap(FontPtr font) } int -findIndex(CmapPtr cmap_head, int code) -{ - CmapPtr cmap; - cmap = cmap_head; - while(cmap) { - if(cmap->endCode > code) - return -1; - if(cmap->startCode <= code) - return cmap->index + code - cmap->startCode; - cmap = cmap->next; - } - return -1; -} - -int findCode(CmapPtr cmap_head, int index) { if(index < 0 || index > cmap_head->maxindex) |