1 //========================================================================
5 //========================================================================
7 #ifndef SPLASHFTFONTFILE_H
8 #define SPLASHFTFONTFILE_H
12 #if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
14 #ifdef USE_GCC_PRAGMAS
18 #include <freetype/freetype.h>
19 #include "SplashFontFile.h"
21 class SplashFontFileID;
22 class SplashFTFontEngine;
24 //------------------------------------------------------------------------
26 //------------------------------------------------------------------------
28 class SplashFTFontFile: public SplashFontFile {
31 static SplashFontFile *loadType1Font(SplashFTFontEngine *engineA,
32 SplashFontFileID *idA, char *fileNameA,
33 GBool deleteFileA, char **encA);
34 static SplashFontFile *loadCIDFont(SplashFTFontEngine *engineA,
35 SplashFontFileID *idA, char *fileNameA,
37 Gushort *codeToCIDA, int codeToGIDLenA);
38 static SplashFontFile *loadTrueTypeFont(SplashFTFontEngine *engineA,
39 SplashFontFileID *idA,
45 virtual ~SplashFTFontFile();
47 // Create a new SplashFTFont, i.e., a scaled instance of this font
49 virtual SplashFont *makeFont(SplashCoord *mat);
53 SplashFTFontFile(SplashFTFontEngine *engineA,
54 SplashFontFileID *idA,
55 char *fileNameA, GBool deleteFileA,
57 Gushort *codeToGIDA, int codeToGIDLenA);
59 SplashFTFontEngine *engine;
64 friend class SplashFTFont;
67 #endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H