summaryrefslogtreecommitdiff
path: root/vcl/unx/generic
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-08-03 14:39:37 +0000
committerخالد حسني <khaled@libreoffice.org>2023-08-03 19:55:43 +0200
commit803747fa9cb9a47e2f392d55b72033185c905e22 (patch)
treea3054a0c14aeef9a5bf17abf275fa8614f38f4ea /vcl/unx/generic
parent61845b3d9fed6a8b97e90ec12126d1e1e4cc18d0 (diff)
Raise minimum FontConfig version to 2.12.0
I want to use FC_SYMBOL and this the first stable version to have it, and our baseline has 2.13.x already. Change-Id: I606b99190020085cdf20a52788a021543c365fca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155312 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r--vcl/unx/generic/fontmanager/fontconfig.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx
index ad9bf6c268ab..7ceb42226d55 100644
--- a/vcl/unx/generic/fontmanager/fontconfig.cxx
+++ b/vcl/unx/generic/fontmanager/fontconfig.cxx
@@ -859,11 +859,12 @@ static void addtopattern(FcPattern *pPattern,
namespace
{
- //Someday fontconfig will hopefully use bcp47, see fdo#19869
- //In the meantime try something that will fit to workaround fdo#35118
+ //Someday fontconfig will hopefully use bcp47, see:
+ //https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/50
+ //In the meantime try something that will fit to workaround, see:
+ //https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/30
OString mapToFontConfigLangTag(const LanguageTag &rLangTag)
{
-#if defined(FC_VERSION) && (FC_VERSION >= 20492)
std::shared_ptr<FcStrSet> xLangSet(FcGetLangs(), FcStrSetDestroy);
OString sLangAttrib;
@@ -897,12 +898,6 @@ namespace
}
return OString();
-#else
- OString sLangAttrib = OUStringToOString(rLangTag.getLanguageAndScript(), RTL_TEXTENCODING_UTF8).toAsciiLowerCase();
- if (sLangAttrib.equalsIgnoreAsciiCase("pa-in"))
- sLangAttrib = "pa";
- return sLangAttrib;
-#endif
}
bool isEmoji(sal_uInt32 nCurrentChar)