]>
git.ipfire.org Git - thirdparty/cups.git/blob - pdftops/SplashFTFont.h
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
);
33 virtual ~SplashFTFont();
35 // Munge xFrac and yFrac before calling SplashFont::getGlyph.
36 virtual GBool
getGlyph(int c
, int xFrac
, int yFrac
,
37 SplashGlyphBitmap
*bitmap
);
39 // Rasterize a glyph. The <xFrac> and <yFrac> values are the same
40 // as described for getGlyph.
41 virtual GBool
makeGlyph(int c
, int xFrac
, int yFrac
,
42 SplashGlyphBitmap
*bitmap
);
44 // Return the path for a glyph.
45 virtual SplashPath
*getGlyphPath(int c
);
53 #endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H