]> git.ipfire.org Git - thirdparty/cups.git/blame - pdftops/SplashT1FontFile.h
Load cups into easysw/current.
[thirdparty/cups.git] / pdftops / SplashT1FontFile.h
CommitLineData
ef416fc2 1//========================================================================
2//
3// SplashT1FontFile.h
4//
5//========================================================================
6
7#ifndef SPLASHT1FONTFILE_H
8#define SPLASHT1FONTFILE_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 "SplashFontFile.h"
19
20class SplashT1FontEngine;
21
22//------------------------------------------------------------------------
23// SplashT1FontFile
24//------------------------------------------------------------------------
25
26class SplashT1FontFile: public SplashFontFile {
27public:
28
29 static SplashFontFile *loadType1Font(SplashT1FontEngine *engineA,
30 SplashFontFileID *idA,
31 char *fileNameA, GBool deleteFileA,
32 char **encA);
33
34 virtual ~SplashT1FontFile();
35
36 // Create a new SplashT1Font, i.e., a scaled instance of this font
37 // file.
38 virtual SplashFont *makeFont(SplashCoord *mat);
39
40private:
41
42 SplashT1FontFile(SplashT1FontEngine *engineA,
43 SplashFontFileID *idA,
44 char *fileNameA, GBool deleteFileA,
45 int t1libIDA, char **encA, char *encStrA);
46
47 SplashT1FontEngine *engine;
48 int t1libID; // t1lib font ID
49 char **enc;
50 char *encStr;
51
52 friend class SplashT1Font;
53};
54
55#endif // HAVE_T1LIB_H
56
57#endif