1 //========================================================================
5 //========================================================================
12 #if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
14 #ifdef USE_GCC_PRAGMAS
18 #include <freetype/freetype.h>
19 #include "SplashFont.h"
21 class SplashFTFontFile;
23 //------------------------------------------------------------------------
25 //------------------------------------------------------------------------
27 class SplashFTFont: public SplashFont {
30 SplashFTFont(SplashFTFontFile *fontFileA, SplashCoord *matA);
32 virtual ~SplashFTFont();
34 // Munge xFrac and yFrac before calling SplashFont::getGlyph.
35 virtual GBool getGlyph(int c, int xFrac, int yFrac,
36 SplashGlyphBitmap *bitmap);
38 // Rasterize a glyph. The <xFrac> and <yFrac> values are the same
39 // as described for getGlyph.
40 virtual GBool makeGlyph(int c, int xFrac, int yFrac,
41 SplashGlyphBitmap *bitmap);
43 // Return the path for a glyph.
44 virtual SplashPath *getGlyphPath(int c);
52 #endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H