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