Ignore:
Timestamp:
Dec 30, 2009, 7:13:45 PM (12 years ago)
Author:
rbri
Message:

PDF plugin: Poppler library updated to version 0.12.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/poppler/mypoppler/poppler/CairoFontEngine.h

    r257 r277  
    1919// Copyright (C) 2006, 2007 Jeff Muizelaar <jeff@infidigm.net>
    2020// Copyright (C) 2006 Carlos Garcia Campos <carlosgc@gnome.org>
     21// Copyright (C) 2008 Adrian Johnson <ajohnson@redneon.com>
    2122//
    2223// To see a description of the changes please see the Changelog file that
     
    3637
    3738#include "GfxFont.h"
     39#include "Catalog.h"
     40
     41class CairoFontEngine;
    3842
    3943class CairoFont {
    4044public:
    41   static CairoFont *create(GfxFont *gfxFont, XRef *xref, FT_Library lib, GBool useCIDs);
    42   ~CairoFont();
     45  CairoFont(Ref ref,
     46            cairo_font_face_t *face,
     47            Gushort *codeToGID,
     48            int codeToGIDLen,
     49            GBool substitute,
     50            GBool printing);
     51  virtual ~CairoFont();
    4352
    44   GBool matches(Ref &other);
     53  virtual GBool matches(Ref &other, GBool printing);
    4554  cairo_font_face_t *getFontFace(void);
    4655  unsigned long getGlyph(CharCode code, Unicode *u, int uLen);
     
    4857
    4958  GBool isSubstitute() { return substitute; }
    50 private:
    51   CairoFont(Ref ref, cairo_font_face_t *cairo_font_face, FT_Face face,
    52       Gushort *codeToGID, int codeToGIDLen, GBool substitute);
     59protected:
    5360  Ref ref;
    5461  cairo_font_face_t *cairo_font_face;
    55   FT_Face face;
    5662
    5763  Gushort *codeToGID;
     
    5965
    6066  GBool substitute;
     67  GBool printing;
     68};
     69
     70//------------------------------------------------------------------------
     71
     72class CairoFreeTypeFont : public CairoFont {
     73public:
     74  static CairoFreeTypeFont *create(GfxFont *gfxFont, XRef *xref, FT_Library lib, GBool useCIDs);
     75  virtual ~CairoFreeTypeFont();
     76
     77private:
     78  CairoFreeTypeFont(Ref ref, cairo_font_face_t *cairo_font_face, FT_Face face,
     79            Gushort *codeToGID, int codeToGIDLen, GBool substitute);
     80  FT_Face face;
     81};
     82
     83//------------------------------------------------------------------------
     84
     85class CairoType3Font : public CairoFont {
     86public:
     87  static CairoType3Font *create(GfxFont *gfxFont, XRef *xref,
     88                                Catalog *catalog, CairoFontEngine *fontEngine,
     89                                GBool printing);
     90  virtual ~CairoType3Font();
     91
     92  virtual GBool matches(Ref &other, GBool printing);
     93
     94private:
     95  CairoType3Font(Ref ref, XRef *xref, Catalog *catalog,
     96                 cairo_font_face_t *cairo_font_face,
     97                 Gushort *codeToGID, int codeToGIDLen,
     98                 GBool printing);
     99  XRef *xref;
     100  Catalog *catalog;
    61101};
    62102
     
    76116  ~CairoFontEngine();
    77117
    78   CairoFont *getFont(GfxFont *gfxFont, XRef *xref);
     118  CairoFont *getFont(GfxFont *gfxFont, XRef *xref, Catalog *catalog, GBool printing);
    79119
    80120private:
Note: See TracChangeset for help on using the changeset viewer.