diff options
Diffstat (limited to 'fofi/FoFiIdentifier.h')
-rw-r--r-- | fofi/FoFiIdentifier.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fofi/FoFiIdentifier.h b/fofi/FoFiIdentifier.h index 79da845..b0307a0 100644 --- a/fofi/FoFiIdentifier.h +++ b/fofi/FoFiIdentifier.h @@ -15,6 +15,8 @@ #pragma interface #endif +class GList; + //------------------------------------------------------------------------ // FoFiIdentifier //------------------------------------------------------------------------ @@ -28,6 +30,7 @@ enum FoFiIdentifierType { fofiIdTrueTypeCollection, // TrueType collection fofiIdOpenTypeCFF8Bit, // OpenType wrapper with 8-bit CFF font fofiIdOpenTypeCFFCID, // OpenType wrapper with CID CFF font + fofiIdDfont, // Mac OS X dfont fofiIdUnknown, // unknown type fofiIdError // error in reading the file }; @@ -35,10 +38,18 @@ enum FoFiIdentifierType { class FoFiIdentifier { public: + // Identify a font file. static FoFiIdentifierType identifyMem(char *file, int len); static FoFiIdentifierType identifyFile(char *fileName); static FoFiIdentifierType identifyStream(int (*getChar)(void *data), void *data); + + // Return a list of font names (GString *) in a font collection + // file. Indexes into the returned list are indexes into the + // collection. This function is only useful with TrueType + // collections and Mac dfont files. Returns NULL on error + // (including invalid font type). + static GList *getFontList(char *fileName); }; #endif |