]> www.fi.muni.cz Git - evince.git/blob - pdf/splash/SplashT1Font.h
Switch from .a to libtool convenience libraries.
[evince.git] / pdf / splash / SplashT1Font.h
1 //========================================================================
2 //
3 // SplashT1Font.h
4 //
5 //========================================================================
6
7 #ifndef SPLASHT1FONT_H
8 #define SPLASHT1FONT_H
9
10 #include <aconf.h>
11
12 #if HAVE_T1LIB_H
13
14 #ifdef USE_GCC_PRAGMAS
15 #pragma interface
16 #endif
17
18 #include "SplashFont.h"
19
20 //------------------------------------------------------------------------
21 // SplashT1Font
22 //------------------------------------------------------------------------
23
24 class SplashT1Font: public SplashFont {
25 public:
26
27   SplashT1Font(SplashT1FontFile *fontFileA, SplashCoord *matA);
28
29   virtual ~SplashT1Font();
30
31   // Munge xFrac and yFrac before calling SplashFont::getGlyph.
32   virtual GBool getGlyph(int c, int xFrac, int yFrac,
33                          SplashGlyphBitmap *bitmap);
34
35   // Rasterize a glyph.  The <xFrac> and <yFrac> values are the same
36   // as described for getGlyph.
37   virtual GBool makeGlyph(int c, int xFrac, int yFrac,
38                           SplashGlyphBitmap *bitmap);
39
40   // Return the path for a glyph.
41   virtual SplashPath *getGlyphPath(int c);
42
43 private:
44
45   int t1libID;                  // t1lib font ID
46   float size;
47 };
48
49 #endif // HAVE_T1LIB_H
50
51 #endif