1//========================================================================
2//
3// FoFiIdentifier.h
4//
5// Copyright 2009 Glyph & Cog, LLC
6//
7//========================================================================
8
9//========================================================================
10//
11// Modified under the Poppler project - http://poppler.freedesktop.org
12//
13// All changes made under the Poppler project to this file are licensed
14// under GPL version 2 or later
15//
16// Copyright (C) 2018 Albert Astals Cid <aacid@kde.org>
17//
18// To see a description of the changes please see the Changelog file that
19// came with your tarball or type make ChangeLog if you are building from git
20//
21//========================================================================
22
23#ifndef FOFIIDENTIFIER_H
24#define FOFIIDENTIFIER_H
25
26//------------------------------------------------------------------------
27// FoFiIdentifier
28//------------------------------------------------------------------------
29
30enum FoFiIdentifierType
31{
32 fofiIdType1PFA, // Type 1 font in PFA format
33 fofiIdType1PFB, // Type 1 font in PFB format
34 fofiIdCFF8Bit, // 8-bit CFF font
35 fofiIdCFFCID, // CID CFF font
36 fofiIdTrueType, // TrueType font
37 fofiIdTrueTypeCollection, // TrueType collection
38 fofiIdOpenTypeCFF8Bit, // OpenType wrapper with 8-bit CFF font
39 fofiIdOpenTypeCFFCID, // OpenType wrapper with CID CFF font
40 fofiIdUnknown, // unknown type
41 fofiIdError // error in reading the file
42};
43
44class FoFiIdentifier
45{
46public:
47 static FoFiIdentifierType identifyMem(const char *file, int len);
48 static FoFiIdentifierType identifyFile(const char *fileName);
49 static FoFiIdentifierType identifyStream(int (*getChar)(void *data), void *data);
50};
51
52#endif
53

source code of poppler/fofi/FoFiIdentifier.h