fix build with recent changes/gcc 6.3.0
[AROS-Contrib.git] / arospdf / splash / SplashFTFont.h
blob8e31d14596511ebdf1e719366964c1923f86ef24
1 //========================================================================
2 //
3 // SplashFTFont.h
4 //
5 //========================================================================
7 #ifndef SPLASHFTFONT_H
8 #define SPLASHFTFONT_H
10 #include <aconf.h>
12 #if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
14 #ifdef USE_GCC_PRAGMAS
15 #pragma interface
16 #endif
18 #include <ft2build.h>
19 #include FT_FREETYPE_H
20 #include "SplashFont.h"
22 class SplashFTFontFile;
24 //------------------------------------------------------------------------
25 // SplashFTFont
26 //------------------------------------------------------------------------
28 class SplashFTFont: public SplashFont {
29 public:
31 SplashFTFont(SplashFTFontFile *fontFileA, SplashCoord *matA,
32 SplashCoord *textMatA);
34 virtual ~SplashFTFont();
36 // Munge xFrac and yFrac before calling SplashFont::getGlyph.
37 virtual GBool getGlyph(int c, int xFrac, int yFrac,
38 SplashGlyphBitmap *bitmap);
40 // Rasterize a glyph. The <xFrac> and <yFrac> values are the same
41 // as described for getGlyph.
42 virtual GBool makeGlyph(int c, int xFrac, int yFrac,
43 SplashGlyphBitmap *bitmap);
45 // Return the path for a glyph.
46 virtual SplashPath *getGlyphPath(int c);
48 private:
50 FT_Size sizeObj;
51 FT_Matrix matrix;
52 FT_Matrix textMatrix;
53 SplashCoord textScale;
56 #endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
58 #endif