]> git.ipfire.org Git - thirdparty/cups.git/blame - pdftops/SplashFTFontEngine.h
Load cups into easysw/current.
[thirdparty/cups.git] / pdftops / SplashFTFontEngine.h
CommitLineData
ef416fc2 1//========================================================================
2//
3// SplashFTFontEngine.h
4//
5//========================================================================
6
7#ifndef SPLASHFTFONTENGINE_H
8#define SPLASHFTFONTENGINE_H
9
10#include <config.h>
11
12#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
13
14#ifdef USE_GCC_PRAGMAS
15#pragma interface
16#endif
17
18#include <ft2build.h>
19#include FT_FREETYPE_H
20#include "gtypes.h"
21
22class SplashFontFile;
23class SplashFontFileID;
24
25//------------------------------------------------------------------------
26// SplashFTFontEngine
27//------------------------------------------------------------------------
28
29class SplashFTFontEngine {
30public:
31
32 static SplashFTFontEngine *init(GBool aaA);
33
34 ~SplashFTFontEngine();
35
36 // Load fonts.
37 SplashFontFile *loadType1Font(SplashFontFileID *idA, char *fileName,
38 GBool deleteFile, char **enc);
39 SplashFontFile *loadType1CFont(SplashFontFileID *idA, char *fileName,
40 GBool deleteFile, char **enc);
41 SplashFontFile *loadCIDFont(SplashFontFileID *idA, char *fileName,
42 GBool deleteFile);
43 SplashFontFile *loadTrueTypeFont(SplashFontFileID *idA, char *fileName,
44 GBool deleteFile,
45 Gushort *codeToGID, int codeToGIDLen);
46
47private:
48
49 SplashFTFontEngine(GBool aaA, FT_Library libA);
50
51 GBool aa;
52 FT_Library lib;
53 GBool useCIDs;
54
55 friend class SplashFTFontFile;
56 friend class SplashFTFont;
57};
58
59#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
60
61#endif