[poppler] poppler/CairoFontEngine.cc poppler/CairoFontEngine.h

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sun Nov 23 02:02:04 PST 2008


 poppler/CairoFontEngine.cc |    7 ++++++-
 poppler/CairoFontEngine.h  |    4 +++-
 2 files changed, 9 insertions(+), 2 deletions(-)

New commits:
commit 817e123a28e9f6b7e5be23f7ac2ba3bcec5e3f3f
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sat Nov 22 21:48:37 2008 +1030

    Don't compare print flag for non Type 3 fonts in cairo font cache

diff --git a/poppler/CairoFontEngine.cc b/poppler/CairoFontEngine.cc
index a45d76d..3c34fc5 100644
--- a/poppler/CairoFontEngine.cc
+++ b/poppler/CairoFontEngine.cc
@@ -79,7 +79,7 @@ CairoFont::~CairoFont() {
 
 GBool
 CairoFont::matches(Ref &other, GBool printingA) {
-  return (other.num == ref.num && other.gen == ref.gen && printing == printingA);
+  return (other.num == ref.num && other.gen == ref.gen);
 }
 
 cairo_font_face_t *
@@ -704,6 +704,11 @@ CairoType3Font::CairoType3Font(Ref ref,
 
 CairoType3Font::~CairoType3Font() { }
 
+GBool
+CairoType3Font::matches(Ref &other, GBool printingA) {
+  return (other.num == ref.num && other.gen == ref.gen && printing == printingA);
+}
+
 
 //------------------------------------------------------------------------
 // CairoFontEngine
diff --git a/poppler/CairoFontEngine.h b/poppler/CairoFontEngine.h
index 7088357..f156cab 100644
--- a/poppler/CairoFontEngine.h
+++ b/poppler/CairoFontEngine.h
@@ -50,7 +50,7 @@ public:
 	    GBool printing);
   virtual ~CairoFont();
 
-  GBool matches(Ref &other, GBool printing);
+  virtual GBool matches(Ref &other, GBool printing);
   cairo_font_face_t *getFontFace(void);
   unsigned long getGlyph(CharCode code, Unicode *u, int uLen);
   double getSubstitutionCorrection(GfxFont *gfxFont);
@@ -89,6 +89,8 @@ public:
 				GBool printing);
   virtual ~CairoType3Font();
 
+  virtual GBool matches(Ref &other, GBool printing);
+
 private:
   CairoType3Font(Ref ref, XRef *xref, Catalog *catalog,
 		 cairo_font_face_t *cairo_font_face,


More information about the poppler mailing list