diff --git a/0001-Resolves-rhbz-715549-use-fontconfig-s-detected-forma.patch b/0001-Resolves-rhbz-715549-use-fontconfig-s-detected-forma.patch index 6e4c747..0096615 100644 --- a/0001-Resolves-rhbz-715549-use-fontconfig-s-detected-forma.patch +++ b/0001-Resolves-rhbz-715549-use-fontconfig-s-detected-forma.patch @@ -23,21 +23,21 @@ index 410ecf1..816adbe 100644 rtl::OUString convertTrueTypeName( void* pNameRecord ) const; // actually a NameRecord* formt font subsetting code void analyzeTrueTypeFamilyName( void* pTTFont, std::list< rtl::OUString >& rnames ) const; // actually a TrueTypeFont* from font subsetting code bool analyzeTrueTypeFile( PrintFont* pFont ) const; -diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx +diff --git a/vcl/unx/source/fontmanager/fontconfig.cxx b/vcl/unx/source/fontmanager/fontconfig.cxx index e4b2f00..5e97bec 100644 ---- a/vcl/unx/generic/fontmanager/fontconfig.cxx -+++ b/vcl/unx/generic/fontmanager/fontconfig.cxx -@@ -68,6 +68,9 @@ using namespace psp; - #ifndef FC_EMBOLDEN - #define FC_EMBOLDEN "embolden" - #endif -+#ifndef FC_FONTFORMAT -+ #define FC_FONTFORMAT "fontformat" -+#endif - - #include - #include -@@ -467,6 +470,7 @@ int PrintFontManager::countFontconfigFonts( boost::unordered_mapfonts[i], FC_SPACING, 0, &spacing); - FcResult eOutRes = FcPatternGetBool(pFSet->fonts[i], FC_OUTLINE, 0, &outline); - FcResult eIndexRes = FcPatternGetInteger(pFSet->fonts[i], FC_INDEX, 0, &nCollectionEntry); -+ FcResult eFormatRes = FcPatternGetString(pFSet->fonts[i], FC_FONTFORMAT, 0, &format); - +@@ -711,6 +715,7 @@ + FcResult eSpacRes = rWrapper.FcPatternGetInteger( pFSet->fonts[i], FC_SPACING, 0, &spacing ); + FcResult eOutRes = rWrapper.FcPatternGetBool( pFSet->fonts[i], FC_OUTLINE, 0, &outline ); + FcResult eIndexRes = rWrapper.FcPatternGetInteger( pFSet->fonts[i], FC_INDEX, 0, &nCollectionEntry ); ++ FcResult eFormatRes = rWrapper.FcPatternGetString(pFSet->fonts[i], FC_FONTFORMAT, 0, &format); + if( eFileRes != FcResultMatch || eFamilyRes != FcResultMatch || eOutRes != FcResultMatch ) continue; -@@ -488,13 +493,14 @@ int PrintFontManager::countFontconfigFonts( boost::unordered_map 2) fprintf( stderr, "found font \"%s\" in file %s\n" " weight = %d, slant = %d, style = \"%s\"\n" @@ -69,7 +69,7 @@ index e4b2f00..5e97bec 100644 ); #endif -@@ -529,7 +535,9 @@ int PrintFontManager::countFontconfigFonts( boost::unordered_map aDummy; @@ -80,10 +80,10 @@ index e4b2f00..5e97bec 100644 #if OSL_DEBUG_LEVEL > 1 if( aFonts.empty() ) fprintf( stderr, "Warning: file \"%s\" is unusable to psprint\n", aOrgPath.getStr() ); -diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx +diff --git a/vcl/unx/source/fontmanager/fontmanager.cxx b/vcl/unx/source/fontmanager/fontmanager.cxx index 2dceb35..27a2629 100644 ---- a/vcl/unx/generic/fontmanager/fontmanager.cxx -+++ b/vcl/unx/generic/fontmanager/fontmanager.cxx +--- a/vcl/unx/source/fontmanager/fontmanager.cxx ++++ b/vcl/unx/source/fontmanager/fontmanager.cxx @@ -1281,9 +1281,12 @@ int PrintFontManager::addFontFile( const ::rtl::OString& rFileName, int /*nFaceN return nFontId; }