16#if !FREETYPE2 && (HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H)
22#if HAVE_FREETYPE_FREETYPE_H
23#include <freetype/freetype.h>
24#include <freetype/ftxpost.h>
34class TTFontEngine: public SFontEngine {
37 TTFontEngine(Display *displayA, Visual *visualA, int depthA,
38 Colormap colormapA, GBool aaA);
39 GBool isOk() { return ok; }
40 virtual ~TTFontEngine();
49 friend class TTFontFile;
58 ttFontModeCharCodeOffset,
63class TTFontFile: public SFontFile {
67 TTFontFile(TTFontEngine *engineA, char *fontFileName,
68 char **fontEnc, GBool pdfFontHasEncoding);
71 TTFontFile(TTFontEngine *engineA, char *fontFileName,
72 Gushort *cidToGIDA, int cidToGIDLenA);
74 GBool isOk() { return ok; }
75 virtual ~TTFontFile();
94struct TTFontCacheTag {
99class TTFont: public SFont {
102 TTFont(TTFontFile *fontFileA, double *m);
103 GBool isOk() { return ok; }
105 virtual GBool drawChar(Drawable d, int w, int h, GC gc,
106 int x, int y, int r, int g, int b,
107 CharCode c, Unicode u);
111 GBool getGlyphPixmap(CharCode c, Unicode u);
113 TTFontFile *fontFile;
114 TT_Instance instance;
119 TT_F26Dot6 xOffset, yOffset;
121 TTFontCacheTag *cacheTags;
|