Change the translation of the "Help" menu item to "?", so that the menu can be displa...
[reactos.git] / rosapps / smartpdf / poppler / splash / SplashFTFontFile.h
1 //========================================================================
2 //
3 // SplashFTFontFile.h
4 //
5 //========================================================================
6
7 #ifndef SPLASHFTFONTFILE_H
8 #define SPLASHFTFONTFILE_H
9
10 #if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
11
12 #ifdef USE_GCC_PRAGMAS
13 #pragma interface
14 #endif
15
16 #include <ft2build.h>
17 #include FT_FREETYPE_H
18 #include "SplashFontFile.h"
19
20 class SplashFontFileID;
21 class SplashFTFontEngine;
22
23 //------------------------------------------------------------------------
24 // SplashFTFontFile
25 //------------------------------------------------------------------------
26
27 class SplashFTFontFile: public SplashFontFile {
28 public:
29
30 static SplashFontFile *loadType1Font(SplashFTFontEngine *engineA,
31 SplashFontFileID *idA,
32 SplashFontSrc *src, char **encA);
33 static SplashFontFile *loadCIDFont(SplashFTFontEngine *engineA,
34 SplashFontFileID *idA,
35 SplashFontSrc *src,
36 Gushort *codeToCIDA, int codeToGIDLenA);
37 static SplashFontFile *loadTrueTypeFont(SplashFTFontEngine *engineA,
38 SplashFontFileID *idA,
39 SplashFontSrc *src,
40 Gushort *codeToGIDA,
41 int codeToGIDLenA,
42 int faceIndexA=0);
43
44 virtual ~SplashFTFontFile();
45
46 // Create a new SplashFTFont, i.e., a scaled instance of this font
47 // file.
48 virtual SplashFont *makeFont(SplashCoord *mat);
49
50 private:
51
52 SplashFTFontFile(SplashFTFontEngine *engineA,
53 SplashFontFileID *idA,
54 SplashFontSrc *srcA,
55 FT_Face faceA,
56 Gushort *codeToGIDA, int codeToGIDLenA);
57
58 SplashFTFontEngine *engine;
59 FT_Face face;
60 Gushort *codeToGID;
61 int codeToGIDLen;
62
63 friend class SplashFTFont;
64 };
65
66 #endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
67
68 #endif