|
|
|||
File indexing completed on 2025-12-11 10:26:09
0001 //======================================================================== 0002 // 0003 // FoFiIdentifier.h 0004 // 0005 // Copyright 2009 Glyph & Cog, LLC 0006 // 0007 //======================================================================== 0008 0009 //======================================================================== 0010 // 0011 // Modified under the Poppler project - http://poppler.freedesktop.org 0012 // 0013 // All changes made under the Poppler project to this file are licensed 0014 // under GPL version 2 or later 0015 // 0016 // Copyright (C) 2018 Albert Astals Cid <aacid@kde.org> 0017 // 0018 // To see a description of the changes please see the Changelog file that 0019 // came with your tarball or type make ChangeLog if you are building from git 0020 // 0021 //======================================================================== 0022 0023 #ifndef FOFIIDENTIFIER_H 0024 #define FOFIIDENTIFIER_H 0025 0026 //------------------------------------------------------------------------ 0027 // FoFiIdentifier 0028 //------------------------------------------------------------------------ 0029 0030 enum FoFiIdentifierType 0031 { 0032 fofiIdType1PFA, // Type 1 font in PFA format 0033 fofiIdType1PFB, // Type 1 font in PFB format 0034 fofiIdCFF8Bit, // 8-bit CFF font 0035 fofiIdCFFCID, // CID CFF font 0036 fofiIdTrueType, // TrueType font 0037 fofiIdTrueTypeCollection, // TrueType collection 0038 fofiIdOpenTypeCFF8Bit, // OpenType wrapper with 8-bit CFF font 0039 fofiIdOpenTypeCFFCID, // OpenType wrapper with CID CFF font 0040 fofiIdUnknown, // unknown type 0041 fofiIdError // error in reading the file 0042 }; 0043 0044 class FoFiIdentifier 0045 { 0046 public: 0047 static FoFiIdentifierType identifyMem(const char *file, int len); 0048 static FoFiIdentifierType identifyFile(const char *fileName); 0049 static FoFiIdentifierType identifyStream(int (*getChar)(void *data), void *data); 0050 }; 0051 0052 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|