SmartPDF - lightweight pdf viewer app for rosapps
[reactos.git] / rosapps / smartpdf / poppler / splash / SplashFTFont.h
1 //========================================================================
2 //
3 // SplashFTFont.h
4 //
5 //========================================================================
6
7 #ifndef SPLASHFTFONT_H
8 #define SPLASHFTFONT_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 "SplashFont.h"
19
20 class SplashFTFontFile;
21
22 //------------------------------------------------------------------------
23 // SplashFTFont
24 //------------------------------------------------------------------------
25
26 class SplashFTFont: public SplashFont {
27 public:
28
29 SplashFTFont(SplashFTFontFile *fontFileA, SplashCoord *matA);
30
31 virtual ~SplashFTFont();
32
33 // Munge xFrac and yFrac before calling SplashFont::getGlyph.
34 virtual GBool getGlyph(int c, int xFrac, int yFrac,
35 SplashGlyphBitmap *bitmap);
36
37 // Rasterize a glyph. The <xFrac> and <yFrac> values are the same
38 // as described for getGlyph.
39 virtual GBool makeGlyph(int c, int xFrac, int yFrac,
40 SplashGlyphBitmap *bitmap);
41
42 // Return the path for a glyph.
43 virtual SplashPath *getGlyphPath(int c);
44
45 private:
46
47 FT_Size sizeObj;
48 FT_Matrix matrix;
49 };
50
51 #endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
52
53 #endif