fontconfig: do not assume the path to a font file is Latin1-encoded

Task-number: QTBUG-42249
Change-Id: Ie5d41ed26a69103991a5189c4f42aa37ac73de26
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
This commit is contained in:
Shawn Rutledge 2014-10-29 10:30:17 +01:00
parent 3d5fb54eda
commit 824f01af8f

View File

@ -409,7 +409,7 @@ static void populateFromPattern(FcPattern *pattern)
#endif
FontFile *fontFile = new FontFile;
fontFile->fileName = QLatin1String((const char *)file_value);
fontFile->fileName = QString::fromLocal8Bit((const char *)file_value);
fontFile->indexValue = indexValue;
QFont::Style style = (slant_value == FC_SLANT_ITALIC)