1 //========================================================================
5 //========================================================================
10 #if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
12 #ifdef USE_GCC_PRAGMAS
17 #include FT_FREETYPE_H
18 #include "SplashFont.h"
20 class SplashFTFontFile
;
22 //------------------------------------------------------------------------
24 //------------------------------------------------------------------------
26 class SplashFTFont
: public SplashFont
{
29 SplashFTFont(SplashFTFontFile
*fontFileA
, SplashCoord
*matA
);
31 virtual ~SplashFTFont();
33 // Munge xFrac and yFrac before calling SplashFont::getGlyph.
34 virtual GBool
getGlyph(int c
, int xFrac
, int yFrac
,
35 SplashGlyphBitmap
*bitmap
);
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
);
42 // Return the path for a glyph.
43 virtual SplashPath
*getGlyphPath(int c
);
51 #endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H