beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-src / fofi / FoFiIdentifier.h
blobaf1323b76d691976ee4e44c721703504dd05161e
1 //========================================================================
2 //
3 // FoFiIdentifier.h
4 //
5 // Copyright 2009 Glyph & Cog, LLC
6 //
7 //========================================================================
9 #ifndef FOFIIDENTIFIER_H
10 #define FOFIIDENTIFIER_H
12 #ifdef USE_GCC_PRAGMAS
13 #pragma interface
14 #endif
16 //------------------------------------------------------------------------
17 // FoFiIdentifier
18 //------------------------------------------------------------------------
20 enum FoFiIdentifierType {
21 fofiIdType1PFA, // Type 1 font in PFA format
22 fofiIdType1PFB, // Type 1 font in PFB format
23 fofiIdCFF8Bit, // 8-bit CFF font
24 fofiIdCFFCID, // CID CFF font
25 fofiIdTrueType, // TrueType font
26 fofiIdTrueTypeCollection, // TrueType collection
27 fofiIdOpenTypeCFF8Bit, // OpenType wrapper with 8-bit CFF font
28 fofiIdOpenTypeCFFCID, // OpenType wrapper with CID CFF font
29 fofiIdUnknown, // unknown type
30 fofiIdError // error in reading the file
33 class FoFiIdentifier {
34 public:
36 static FoFiIdentifierType identifyMem(char *file, int len);
37 static FoFiIdentifierType identifyFile(char *fileName);
38 static FoFiIdentifierType identifyStream(int (*getChar)(void *data),
39 void *data);
42 #endif