~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/poppler/splash/SplashFTFontEngine.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// SplashFTFontEngine.h
 
4
//
 
5
//========================================================================
 
6
 
 
7
//========================================================================
 
8
//
 
9
// Modified under the Poppler project - http://poppler.freedesktop.org
 
10
//
 
11
// All changes made under the Poppler project to this file are licensed
 
12
// under GPL version 2 or later
 
13
//
 
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>
 
17
//
 
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
 
20
//
 
21
//========================================================================
 
22
 
 
23
#ifndef SPLASHFTFONTENGINE_H
 
24
#define SPLASHFTFONTENGINE_H
 
25
 
 
26
#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
 
27
 
 
28
#ifdef USE_GCC_PRAGMAS
 
29
#pragma interface
 
30
#endif
 
31
 
 
32
#include <ft2build.h>
 
33
#include FT_FREETYPE_H
 
34
#include "goo/gtypes.h"
 
35
 
 
36
class SplashFontFile;
 
37
class SplashFontFileID;
 
38
class SplashFontSrc;
 
39
 
 
40
//------------------------------------------------------------------------
 
41
// SplashFTFontEngine
 
42
//------------------------------------------------------------------------
 
43
 
 
44
class SplashFTFontEngine {
 
45
public:
 
46
 
 
47
  static SplashFTFontEngine *init(GBool aaA, GBool enableFreeTypeHintingA);
 
48
 
 
49
  ~SplashFTFontEngine();
 
50
 
 
51
  // Load fonts.
 
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);
 
59
 
 
60
private:
 
61
 
 
62
  SplashFTFontEngine(GBool aaA, GBool enableFreeTypeHintingA, FT_Library libA);
 
63
 
 
64
  GBool aa;
 
65
  GBool enableFreeTypeHinting;
 
66
  FT_Library lib;
 
67
  GBool useCIDs;
 
68
 
 
69
  friend class SplashFTFontFile;
 
70
  friend class SplashFTFont;
 
71
};
 
72
 
 
73
#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
 
74
 
 
75
#endif