From 765ad082acccd909542b393cd80c550bfb077207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 22 Mar 2011 14:33:11 +0000 Subject: [PATCH] fix patch --- ...an-Knot-of-who-owns-the-font-options.patch | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/0001-Cut-Gordian-Knot-of-who-owns-the-font-options.patch b/0001-Cut-Gordian-Knot-of-who-owns-the-font-options.patch index 9b70f72..ada49b5 100644 --- a/0001-Cut-Gordian-Knot-of-who-owns-the-font-options.patch +++ b/0001-Cut-Gordian-Knot-of-who-owns-the-font-options.patch @@ -15,15 +15,15 @@ diff --git a/vcl/inc/vcl/glyphcache.hxx b/vcl/inc/vcl/glyphcache.hxx index 351eb13..6a375a4 100644 --- a/vcl/inc/vcl/glyphcache.hxx +++ b/vcl/inc/vcl/glyphcache.hxx -@@ -45,6 +45,7 @@ class ImplFontOptions; +@@ -45,6 +45,7 @@ #include - #include - #include + #include + #include +#include namespace basegfx { class B2DPolyPolygon; } -@@ -186,8 +187,9 @@ public: +@@ -182,8 +183,9 @@ virtual bool TestFont() const { return true; } virtual void* GetFtFace() const { return 0; } virtual int GetLoadFlags() const { return 0; } @@ -35,7 +35,7 @@ index 351eb13..6a375a4 100644 virtual bool NeedsArtificialBold() const { return false; } virtual bool NeedsArtificialItalic() const { return false; } -@@ -266,7 +268,7 @@ class VCL_PLUGIN_PUBLIC ImplServerFontEntry : public ImplFontEntry +@@ -261,7 +263,7 @@ { private: ServerFont* mpServerFont; @@ -122,7 +122,7 @@ diff --git a/vcl/unx/source/gdi/salgdi3.cxx b/vcl/unx/source/gdi/salgdi3.cxx index 20fd3cd..4365356 100644 --- a/vcl/unx/source/gdi/salgdi3.cxx +++ b/vcl/unx/source/gdi/salgdi3.cxx -@@ -236,8 +236,8 @@ void ImplServerFontEntry::HandleFontOptions( void ) +@@ -665,8 +665,8 @@ { // get and cache the font options mbGotFontOptions = true; @@ -133,19 +133,13 @@ index 20fd3cd..4365356 100644 } // apply the font options mpServerFont->SetFontOptions( mpFontOptions ); -@@ -536,12 +536,12 @@ void X11SalGraphics::DrawCairoAAFontString( const ServerFontLayout& rLayout ) - void* pFace = rFont.GetFtFace(); - CairoFontsCache::CacheId aId; - aId.mpFace = pFace; -- aId.mpOptions = rFont.GetFontOptions(); -+ aId.mpOptions = rFont.GetFontOptions().get(); - aId.mbEmbolden = rFont.NeedsArtificialBold(); - font_face = (cairo_font_face_t*)m_aCairoFontsCache.FindCachedFont(aId); +@@ -1043,7 +1043,7 @@ + font_face = (cairo_font_face_t*)m_aCairoFontsCache.FindCachedFont(pId); if (!font_face) { - const ImplFontOptions *pOptions = rFont.GetFontOptions(); + const ImplFontOptions *pOptions = rFont.GetFontOptions().get(); - void *pPattern = pOptions ? pOptions->GetPattern(pFace, aId.mbEmbolden) : NULL; + void *pPattern = pOptions ? pOptions->GetPattern(pId) : NULL; if (pPattern) font_face = rCairo.ft_font_face_create_for_pattern(pPattern); --