fix patch to apply
This commit is contained in:
parent
4345637b17
commit
ac447d51c7
@ -17,23 +17,13 @@ diff --git a/vcl/unx/source/fontmanager/fontconfig.cxx b/vcl/unx/source/fontmana
|
||||
index d7a888d..7a40084 100644
|
||||
--- a/vcl/unx/source/fontmanager/fontconfig.cxx
|
||||
+++ b/vcl/unx/source/fontmanager/fontconfig.cxx
|
||||
@@ -993,9 +993,15 @@ rtl::OUString PrintFontManager::Substitute(const rtl::OUString& rFontName,
|
||||
const FcChar8* pTargetNameUtf8 = (FcChar8*)aTargetName.getStr();
|
||||
rWrapper.FcPatternAddString( pPattern, FC_FAMILY, pTargetNameUtf8 );
|
||||
@@ -1102,6 +1102,9 @@
|
||||
|
||||
- const FcChar8* pLangAttribUtf8 = (FcChar8*)rLangAttrib.getStr();
|
||||
if( rLangAttrib.getLength() )
|
||||
+ {
|
||||
+ const FcChar8* pLangAttribUtf8;
|
||||
+ if (rLangAttrib.equalsIgnoreAsciiCase(OString(RTL_CONSTASCII_STRINGPARAM("pa-in"))))
|
||||
+ pLangAttribUtf8 = (FcChar8*)"pa";
|
||||
+ else
|
||||
+ pLangAttribUtf8 = (FcChar8*)rLangAttrib.getStr();
|
||||
rWrapper.FcPatternAddString( pPattern, FC_LANG, pLangAttribUtf8 );
|
||||
+ }
|
||||
const FcChar8* pLangAttribUtf8 = (FcChar8*)rLangAttrib.getStr();
|
||||
|
||||
+ if (rLangAttrib.equalsIgnoreAsciiCase(OString(RTL_CONSTASCII_STRINGPARAM("pa-in"))))
|
||||
+ pLangAttribUtf8 = (FcChar8*)"pa";
|
||||
+
|
||||
// Add required Unicode characters, if any
|
||||
if ( rMissingCodes.getLength() )
|
||||
--
|
||||
1.7.4.1
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user