1
//========================================================================
3
// SplashFTFontEngine.h
5
//========================================================================
7
//========================================================================
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>
15
// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com>
16
// Copyright (C) 2009 Albert Astals Cid <aacid@kde.org>
18
// To see a description of the changes please see the Changelog file that
19
// came with your tarball or type make ChangeLog if you are building from git
21
//========================================================================
23
#ifndef SPLASHFTFONTENGINE_H
24
#define SPLASHFTFONTENGINE_H
26
#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
28
#ifdef USE_GCC_PRAGMAS
33
#include FT_FREETYPE_H
34
#include "goo/gtypes.h"
37
class SplashFontFileID;
40
//------------------------------------------------------------------------
42
//------------------------------------------------------------------------
44
class SplashFTFontEngine {
47
static SplashFTFontEngine *init(GBool aaA, GBool enableFreeTypeHintingA);
49
~SplashFTFontEngine();
52
SplashFontFile *loadType1Font(SplashFontFileID *idA, SplashFontSrc *src, char **enc);
53
SplashFontFile *loadType1CFont(SplashFontFileID *idA, SplashFontSrc *src, char **enc);
54
SplashFontFile *loadOpenTypeT1CFont(SplashFontFileID *idA, SplashFontSrc *src, char **enc);
55
SplashFontFile *loadCIDFont(SplashFontFileID *idA, SplashFontSrc *src);
56
SplashFontFile *loadOpenTypeCFFFont(SplashFontFileID *idA, SplashFontSrc *src);
57
SplashFontFile *loadTrueTypeFont(SplashFontFileID *idA, SplashFontSrc *src,
58
Gushort *codeToGID, int codeToGIDLen, int faceIndex = 0);
62
SplashFTFontEngine(GBool aaA, GBool enableFreeTypeHintingA, FT_Library libA);
65
GBool enableFreeTypeHinting;
69
friend class SplashFTFontFile;
70
friend class SplashFTFont;
73
#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H