Commit d23b268e authored by Jakub Stachowski's avatar Jakub Stachowski
Browse files

Make font matching independent of current locale.

BUG: 98992

svn path=/trunk/kdegraphics/kpdf/; revision=394110
parent 25d51b8b
......@@ -1070,7 +1070,9 @@ DisplayFontParam *GlobalParams::getDisplayFont(GString *fontName) {
int weight=FC_WEIGHT_MEDIUM, slant=FC_SLANT_ROMAN;
QString name(fontName->getCString());
parseStyle(name,weight,slant);
p = FcPatternBuild(0,FC_FAMILY,FcTypeString, name.ascii(), FC_SLANT, FcTypeInteger, slant, FC_WEIGHT, FcTypeInteger, weight, (char*)0);
p = FcPatternBuild(0,FC_FAMILY,FcTypeString, name.ascii(),
FC_SLANT, FcTypeInteger, slant, FC_WEIGHT, FcTypeInteger, weight,
FC_LANG, FcTypeString, "xx", (char*)0);
if (!p) goto fin;
m = XftFontMatch(qt_xdisplay(),qt_xscreen(),p,&res);
if (!m) goto fin;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment