"Fossies" - the Fresh Open Source Software Archive

Member "xpdf-4.02/splash/SplashFTFont.h" (25 Sep 2019, 1345 Bytes) of package /linux/misc/xpdf-4.02.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "SplashFTFont.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 3.04_vs_4.00.

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