Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.8.0, 5.0.0
-
None
-
windows
-
03875c0ba56cb7f95f56a8a7901603e790f066d3
Description
According to EnumFontFamExProc docs, "The ENUMLOGFONTEX structure includes the localized name of the script (character set)" (see "Remarks" section at http://msdn.microsoft.com/en-us/library/windows/desktop/dd162618(v=vs.85).aspx).
Thus, WritingSystem writingSystemFromScript(const QString &scriptName) helper always returns QFontDatabase::Any writing system, since the comparison is done for non-localized character set names.
i.e.
[code]
if (scriptName == QStringLiteral("Cyrillic"))
return QFontDatabase::Cyrillic;
[/code]
but scriptName is "Кириллический"