From 2a393c134fe3fe8eb85bf818cb7ad6ae4396322a Mon Sep 17 00:00:00 2001 From: Martin Kretzschmar Date: Wed, 18 Sep 2002 22:20:42 +0000 Subject: Synched with Xpdf 1.01 --- (limited to 'pdf/xpdf/T1Font.h') diff --git a/pdf/xpdf/T1Font.h b/pdf/xpdf/T1Font.h index 6c1e8f8..5215c3a 100644 --- a/pdf/xpdf/T1Font.h +++ b/pdf/xpdf/T1Font.h @@ -4,6 +4,8 @@ // // An X wrapper for the t1lib Type 1 font rasterizer. // +// Copyright 2001-2002 Glyph & Cog, LLC +// //======================================================================== #ifndef T1FONT_H @@ -19,15 +21,15 @@ #include #include "SFont.h" -class FontEncoding; +class GfxState; //------------------------------------------------------------------------ class T1FontEngine: public SFontEngine { public: - T1FontEngine(Display *display, Visual *visual, int depth, - Colormap colormap, GBool aa, GBool aaHigh); + T1FontEngine(Display *displayA, Visual *visualA, int depthA, + Colormap colormapA, GBool aaA, GBool aaHighA); GBool isOk() { return ok; } virtual ~T1FontEngine(); @@ -46,8 +48,8 @@ private: class T1FontFile: public SFontFile { public: - T1FontFile(T1FontEngine *engine, char *fontFileName, - FontEncoding *fontEnc); + T1FontFile(T1FontEngine *engineA, char *fontFileName, + char **fontEnc, double *bboxA); GBool isOk() { return ok; } virtual ~T1FontFile(); @@ -57,6 +59,7 @@ private: int id; // t1lib font ID char **enc; char *encStr; + double bbox[4]; GBool ok; friend class T1Font; @@ -73,15 +76,17 @@ struct T1FontCacheTag { class T1Font: public SFont { public: - T1Font(T1FontFile *fontFile, double *m); + T1Font(T1FontFile *fontFileA, double *m); GBool isOk() { return ok; } virtual ~T1Font(); virtual GBool drawChar(Drawable d, int w, int h, GC gc, - int x, int y, int r, int g, int b, Gushort c); + int x, int y, int r, int g, int b, + CharCode c, Unicode u); + virtual GBool getCharPath(CharCode c, Unicode u, GfxState *state); private: - Guchar *getGlyphPixmap(Gushort c, int *x, int *y, int *w, int *h); + Guchar *getGlyphPixmap(CharCode c, int *x, int *y, int *w, int *h); T1FontFile *fontFile; int id; -- cgit v0.9.1