~ubuntu-branches/ubuntu/lucid/swftools/lucid

« back to all changes in this revision

Viewing changes to lib/pdf/xpdf/SplashFTFont.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2009-04-30 05:22:19 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090430052219-l1n64qofzeq5pej8
Tags: 0.9.0-0ubuntu1
* New upstream release (LP: #369931)
  - patches/01_manpages: edited to match updated version of src/pdf2swf.1 and
    src/wav2swf.1
  - patches/02_faq: edited to match updated version of FAQ
  - patches/04_makefile: edited to delete the patch on lib/Makefile.in and 
    src/Makefile.in (applied upstream)
  - deleted patch 99_configure_for_python2.5_and_2.6 (applied upstream)
  - debian/swftools.doc: deleted installation of TODO and 
    pdf2swf/HOWTO_pdf2swf as they don't exist anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// SplashFTFont.h
 
4
//
 
5
//========================================================================
 
6
 
 
7
#ifndef SPLASHFTFONT_H
 
8
#define SPLASHFTFONT_H
 
9
 
 
10
#include <aconf.h>
 
11
 
 
12
#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
 
13
 
 
14
#ifdef USE_GCC_PRAGMAS
 
15
#pragma interface
 
16
#endif
 
17
 
 
18
#include <ft2build.h>
 
19
#include FT_FREETYPE_H
 
20
#include "SplashFont.h"
 
21
 
 
22
class SplashFTFontFile;
 
23
 
 
24
//------------------------------------------------------------------------
 
25
// SplashFTFont
 
26
//------------------------------------------------------------------------
 
27
 
 
28
class SplashFTFont: public SplashFont {
 
29
public:
 
30
 
 
31
  SplashFTFont(SplashFTFontFile *fontFileA, SplashCoord *matA,
 
32
               SplashCoord *textMatA);
 
33
 
 
34
  virtual ~SplashFTFont();
 
35
 
 
36
  // Munge xFrac and yFrac before calling SplashFont::getGlyph.
 
37
  virtual GBool getGlyph(int c, int xFrac, int yFrac,
 
38
                         SplashGlyphBitmap *bitmap);
 
39
 
 
40
  // Rasterize a glyph.  The <xFrac> and <yFrac> values are the same
 
41
  // as described for getGlyph.
 
42
  virtual GBool makeGlyph(int c, int xFrac, int yFrac,
 
43
                          SplashGlyphBitmap *bitmap);
 
44
 
 
45
  // return the number of characters in this font
 
46
  virtual int getNumChars();
 
47
 
 
48
  // Return the path for a glyph.
 
49
  virtual SplashPath *getGlyphPath(int c);
 
50
 
 
51
private:
 
52
 
 
53
  FT_Size sizeObj;
 
54
  FT_Matrix matrix;
 
55
  FT_Matrix textMatrix;
 
56
  SplashCoord textScale;
 
57
};
 
58
 
 
59
#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H
 
60
 
 
61
#endif