source: trunk/poppler/mypoppler/splash/SplashFTFontEngine.h @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 1.4 KB
Line 
1//========================================================================
2//
3// SplashFTFontEngine.h
4//
5//========================================================================
6
7#ifndef SPLASHFTFONTENGINE_H
8#define SPLASHFTFONTENGINE_H
9
10#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
11
12#ifdef USE_GCC_PRAGMAS
13#pragma interface
14#endif
15
16#include <ft2build.h>
17#include FT_FREETYPE_H
18#include "goo/gtypes.h"
19
20class SplashFontFile;
21class SplashFontFileID;
22class SplashFontSrc;
23
24//------------------------------------------------------------------------
25// SplashFTFontEngine
26//------------------------------------------------------------------------
27
28class SplashFTFontEngine {
29public:
30
31  static SplashFTFontEngine *init(GBool aaA);
32
33  ~SplashFTFontEngine();
34
35  // Load fonts.
36  SplashFontFile *loadType1Font(SplashFontFileID *idA, SplashFontSrc *src, char **enc);
37  SplashFontFile *loadType1CFont(SplashFontFileID *idA, SplashFontSrc *src, char **enc);
38  SplashFontFile *loadCIDFont(SplashFontFileID *idA, SplashFontSrc *src);
39  SplashFontFile *loadTrueTypeFont(SplashFontFileID *idA, SplashFontSrc *src,
40                                   Gushort *codeToGID, int codeToGIDLen,
41                                   int faceIndex=0);
42
43private:
44
45  SplashFTFontEngine(GBool aaA, FT_Library libA);
46
47  GBool aa;
48  FT_Library lib;
49  GBool useCIDs;
50
51  friend class SplashFTFontFile;
52  friend class SplashFTFont;
53};
54
55#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
56
57#endif
Note: See TracBrowser for help on using the repository browser.