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

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

First import

File size: 1.2 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
31  virtual ~SplashFTFont();
32
33  // Munge xFrac and yFrac before calling SplashFont::getGlyph.
34  virtual GBool getGlyph(int c, int xFrac, int yFrac,
35                         SplashGlyphBitmap *bitmap);
36
37  // Rasterize a glyph.  The <xFrac> and <yFrac> values are the same
38  // as described for getGlyph.
39  virtual GBool makeGlyph(int c, int xFrac, int yFrac,
40                          SplashGlyphBitmap *bitmap);
41
42  // Return the path for a glyph.
43  virtual SplashPath *getGlyphPath(int c);
44
45private:
46
47  FT_Size sizeObj;
48  FT_Matrix matrix;
49};
50
51#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
52
53#endif
Note: See TracBrowser for help on using the repository browser.