diff options
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/fontmanager/fontconfig.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx index 33a90812ddcb..ac747bd71aef 100644 --- a/vcl/unx/generic/fontmanager/fontconfig.cxx +++ b/vcl/unx/generic/fontmanager/fontconfig.cxx @@ -54,6 +54,7 @@ using namespace psp; #include <cstdio> #include <unotools/configmgr.hxx> +#include <unotools/syslocaleoptions.hxx> #include <osl/process.h> @@ -442,13 +443,9 @@ FcResult FontCfgWrapper::LocalizedElementFromPattern(FcPattern const * pPattern, ++k; } - //possible to-do, sort by UILocale instead of process locale if (!m_pLanguageTag) - { - rtl_Locale* pLoc = nullptr; - osl_getProcessLocale(&pLoc); - m_pLanguageTag.reset( new LanguageTag(*pLoc) ); - } + m_pLanguageTag.reset(new LanguageTag(SvtSysLocaleOptions().GetRealUILanguageTag())); + *element = bestname(lang_and_elements, *m_pLanguageTag); //if this element is a fontname, map the other names to this best-name |