]>
git.ipfire.org Git - thirdparty/cups.git/blob - pdftops/SplashFTFontFile.h
1 //========================================================================
5 //========================================================================
7 #ifndef SPLASHFTFONTFILE_H
8 #define SPLASHFTFONTFILE_H
12 #if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
14 #ifdef USE_GCC_PRAGMAS
19 #include FT_FREETYPE_H
20 #include "SplashFontFile.h"
22 class SplashFontFileID
;
23 class SplashFTFontEngine
;
25 //------------------------------------------------------------------------
27 //------------------------------------------------------------------------
29 class SplashFTFontFile
: public SplashFontFile
{
32 static SplashFontFile
*loadType1Font(SplashFTFontEngine
*engineA
,
33 SplashFontFileID
*idA
, char *fileNameA
,
34 GBool deleteFileA
, char **encA
);
35 static SplashFontFile
*loadCIDFont(SplashFTFontEngine
*engineA
,
36 SplashFontFileID
*idA
, char *fileNameA
,
38 Gushort
*codeToCIDA
, int codeToGIDLenA
);
39 static SplashFontFile
*loadTrueTypeFont(SplashFTFontEngine
*engineA
,
40 SplashFontFileID
*idA
,
46 virtual ~SplashFTFontFile();
48 // Create a new SplashFTFont, i.e., a scaled instance of this font
50 virtual SplashFont
*makeFont(SplashCoord
*mat
);
54 SplashFTFontFile(SplashFTFontEngine
*engineA
,
55 SplashFontFileID
*idA
,
56 char *fileNameA
, GBool deleteFileA
,
58 Gushort
*codeToGIDA
, int codeToGIDLenA
);
60 SplashFTFontEngine
*engine
;
65 friend class SplashFTFont
;
68 #endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H