1
//========================================================================
5
//========================================================================
12
#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
14
#ifdef USE_GCC_PRAGMAS
19
#include FT_FREETYPE_H
20
#include "SplashFont.h"
22
class SplashFTFontFile;
24
//------------------------------------------------------------------------
26
//------------------------------------------------------------------------
28
class SplashFTFont: public SplashFont {
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 number of characters in this font
46
virtual int getNumChars();
48
// Return the path for a glyph.
49
virtual SplashPath *getGlyphPath(int c);
56
SplashCoord textScale;
59
#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H