beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-src / splash / SplashT1FontFile.h
blobc094b6d8b2931bebb033dd61f36314c0a1afcf51
1 //========================================================================
2 //
3 // SplashT1FontFile.h
4 //
5 //========================================================================
7 //========================================================================
8 //
9 // Modified under the Poppler project - http://poppler.freedesktop.org
11 // All changes made under the Poppler project to this file are licensed
12 // under GPL version 2 or later
14 // Copyright (C) 2006 Takashi Iwai <tiwai@suse.de>
16 // To see a description of the changes please see the Changelog file that
17 // came with your tarball or type make ChangeLog if you are building from git
19 //========================================================================
21 #ifndef SPLASHT1FONTFILE_H
22 #define SPLASHT1FONTFILE_H
24 #if HAVE_T1LIB_H
26 #ifdef USE_GCC_PRAGMAS
27 #pragma interface
28 #endif
30 #include "SplashFontFile.h"
32 class SplashT1FontEngine;
34 //------------------------------------------------------------------------
35 // SplashT1FontFile
36 //------------------------------------------------------------------------
38 class SplashT1FontFile: public SplashFontFile {
39 public:
41 static SplashFontFile *loadType1Font(SplashT1FontEngine *engineA,
42 SplashFontFileID *idA,
43 SplashFontSrc *src,
44 const char **encA);
46 virtual ~SplashT1FontFile();
48 // Create a new SplashT1Font, i.e., a scaled instance of this font
49 // file.
50 virtual SplashFont *makeFont(SplashCoord *mat,
51 SplashCoord *textMat);
53 private:
55 SplashT1FontFile(SplashT1FontEngine *engineA,
56 SplashFontFileID *idA,
57 SplashFontSrc *src,
58 int t1libIDA, const char **encA, char *encStrA);
60 SplashT1FontEngine *engine;
61 int t1libID; // t1lib font ID
62 const char **enc;
63 char *encStr;
65 friend class SplashT1Font;
68 #endif // HAVE_T1LIB_H
70 #endif