Debian Codegraph @

libs/xpdf/xpdf-src/splash/SplashFTFont.h

raw
1 //========================================================================
2 //
3 // SplashFTFont.h
4 //
5 // Copyright 2003-2013 Glyph & Cog, LLC
6 //
7 //========================================================================
8
9 #ifndef SPLASHFTFONT_H
10 #define SPLASHFTFONT_H
11
12 #include <aconf.h>
13
14 #if HAVE_FREETYPE_H
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 SplashCoord *textMatA);
31
32 virtual ~SplashFTFont();
33
34 // Munge xFrac and yFrac before calling SplashFont::getGlyph.
35 virtual GBool getGlyph(Guint c, int xFrac, int yFrac,
36 SplashGlyphBitmap *bitmap);
37
38 // Rasterize a glyph. The <xFrac> and <yFrac> values are the same
39 // as described for getGlyph.
40 virtual GBool makeGlyph(Guint c, int xFrac, int yFrac,
41 SplashGlyphBitmap *bitmap);
42
43 // Return the path for a glyph.
44 virtual SplashPath *getGlyphPath(Guint c);
45
46 private:
47
48 FT_Size sizeObj;
49 FT_Matrix matrix;
50 FT_Matrix textMatrix;
51 SplashCoord textScale;
52 };
53
54 #endif // HAVE_FREETYPE_H
55
56 #endif