source: trunk/poppler/mypoppler/splash/SplashFTFont.h @ 250

Last change on this file since 250 was 250, checked in by Eugene Romanenko, 13 years ago

PDF plugin: poppler library updated to version 0.8.3

File size: 1.5 KB
Line 
1//========================================================================
2//
3// SplashFTFont.h
4//
5//========================================================================
6
7#ifndef SPLASHFTFONT_H
8#define SPLASHFTFONT_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 "SplashFont.h"
19
20class SplashFTFontFile;
21
22//------------------------------------------------------------------------
23// SplashFTFont
24//------------------------------------------------------------------------
25
26class SplashFTFont: public SplashFont {
27public:
28
29  SplashFTFont(SplashFTFontFile *fontFileA, SplashCoord *matA,
30               SplashCoord *textMatA);
31
32  virtual ~SplashFTFont();
33
34  // Munge xFrac and yFrac before calling SplashFont::getGlyph.
35  virtual GBool getGlyph(int c, int xFrac, int yFrac,
36                         SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes);
37
38  // Rasterize a glyph.  The <xFrac> and <yFrac> values are the same
39  // as described for getGlyph.
40  virtual GBool makeGlyph(int c, int xFrac, int yFrac,
41                          SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes);
42
43  // Return the path for a glyph.
44  virtual SplashPath *getGlyphPath(int c);
45
46  // Return the advance of a glyph. (in 0..1 range)
47  virtual double getGlyphAdvance(int c);
48
49private:
50
51  FT_Size sizeObj;
52  FT_Matrix matrix;
53  FT_Matrix textMatrix;
54  SplashCoord textScale;
55  double size;
56};
57
58#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
59
60#endif
Note: See TracBrowser for help on using the repository browser.