1 //========================================================================
3 // SplashFTFontEngine.h
5 //========================================================================
7 #ifndef SPLASHFTFONTENGINE_H
8 #define SPLASHFTFONTENGINE_H
12 #if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
14 #ifdef USE_GCC_PRAGMAS
18 #include <freetype/freetype.h>
22 class SplashFontFileID;
24 //------------------------------------------------------------------------
26 //------------------------------------------------------------------------
28 class SplashFTFontEngine {
31 static SplashFTFontEngine *init(GBool aaA);
33 ~SplashFTFontEngine();
36 SplashFontFile *loadType1Font(SplashFontFileID *idA, char *fileName,
37 GBool deleteFile, char **enc);
38 SplashFontFile *loadType1CFont(SplashFontFileID *idA, char *fileName,
39 GBool deleteFile, char **enc);
40 SplashFontFile *loadCIDFont(SplashFontFileID *idA, char *fileName,
42 SplashFontFile *loadTrueTypeFont(SplashFontFileID *idA, char *fileName,
44 Gushort *codeToGID, int codeToGIDLen);
48 SplashFTFontEngine(GBool aaA, FT_Library libA);
53 friend class SplashFTFontFile;
54 friend class SplashFTFont;
57 #endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H