X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pdf%2Fxpdf%2FT1Font.h;h=cfd7f620611fc6ecf0a15cbbf0bc0da5062fe54b;hb=bfd0b848c8c81ab10698f74b77f9f0904c3161e1;hp=6c1e8f81f7af53f72986ee2739afda0862439b07;hpb=7aac8dc8533347e21311b15186e0af82f1b22fd6;p=evince.git diff --git a/pdf/xpdf/T1Font.h b/pdf/xpdf/T1Font.h index 6c1e8f81..cfd7f620 100644 --- a/pdf/xpdf/T1Font.h +++ b/pdf/xpdf/T1Font.h @@ -4,14 +4,18 @@ // // An X wrapper for the t1lib Type 1 font rasterizer. // +// Copyright 2001-2002 Glyph & Cog, LLC +// //======================================================================== #ifndef T1FONT_H #define T1FONT_H +#include + #if HAVE_T1LIB_H -#ifdef __GNUC__ +#ifdef USE_GCC_PRAGMAS #pragma interface #endif @@ -19,15 +23,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(); @@ -37,6 +41,8 @@ private: GBool aaHigh; // use high-res anti-aliasing? GBool ok; + static int t1libInitCount; + friend class T1FontFile; friend class T1Font; }; @@ -46,8 +52,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 +63,7 @@ private: int id; // t1lib font ID char **enc; char *encStr; + double bbox[4]; GBool ok; friend class T1Font; @@ -73,15 +80,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;