1 //========================================================================
5 //========================================================================
7 #ifndef SPLASHFTFONTFILE_H
8 #define SPLASHFTFONTFILE_H
10 #if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
12 #ifdef USE_GCC_PRAGMAS
17 #include FT_FREETYPE_H
18 #include "SplashFontFile.h"
20 class SplashFontFileID
;
21 class SplashFTFontEngine
;
23 //------------------------------------------------------------------------
25 //------------------------------------------------------------------------
27 class SplashFTFontFile
: public SplashFontFile
{
30 static SplashFontFile
*loadType1Font(SplashFTFontEngine
*engineA
,
31 SplashFontFileID
*idA
,
32 SplashFontSrc
*src
, char **encA
);
33 static SplashFontFile
*loadCIDFont(SplashFTFontEngine
*engineA
,
34 SplashFontFileID
*idA
,
36 Gushort
*codeToCIDA
, int codeToGIDLenA
);
37 static SplashFontFile
*loadTrueTypeFont(SplashFTFontEngine
*engineA
,
38 SplashFontFileID
*idA
,
44 virtual ~SplashFTFontFile();
46 // Create a new SplashFTFont, i.e., a scaled instance of this font
48 virtual SplashFont
*makeFont(SplashCoord
*mat
);
52 SplashFTFontFile(SplashFTFontEngine
*engineA
,
53 SplashFontFileID
*idA
,
56 Gushort
*codeToGIDA
, int codeToGIDLenA
);
58 SplashFTFontEngine
*engine
;
63 friend class SplashFTFont
;
66 #endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H