[Libreoffice-commits] .: vcl/unx

Fridrich Strba fridrich at kemper.freedesktop.org
Mon Jul 11 00:11:34 PDT 2011


 vcl/unx/generic/fontmanager/fontconfig.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 0b2aedb9fbd07c89fd439cbcdcfea28596956ee2
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Mon Jul 11 09:11:08 2011 +0200

    FcPatternAddFTFace is 2.4.x feature and our baseline is 2.2.0

diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx
index 7904dfd..e4b2f00 100644
--- a/vcl/unx/generic/fontmanager/fontconfig.cxx
+++ b/vcl/unx/generic/fontmanager/fontconfig.cxx
@@ -864,7 +864,10 @@ public:
     }
     virtual void *GetPattern(void * face, bool bEmbolden) const
     {
-        FcPatternAddFTFace(mpPattern, FC_FT_FACE, static_cast<FT_Face>(face));
+        FcValue value;
+        value.type = FcTypeFTFace;
+        value.u.f = face;
+        FcPatternAdd (mpPattern, FC_FT_FACE, value, FcTrue);
         FcPatternAddBool(mpPattern, FC_EMBOLDEN, bEmbolden ? FcTrue : FcFalse);
         return mpPattern;
     }


More information about the Libreoffice-commits mailing list