Use FcMatchPattern to make alias replacement work.

master
Torsten Paul 2014-09-03 17:43:19 +02:00
parent 89201c91c8
commit 3d2290c203
1 changed files with 2 additions and 1 deletions

View File

@ -298,8 +298,9 @@ FT_Face FontCache::find_face_fontconfig(const std::string font)
FcPattern *pattern = FcNameParse((unsigned char *) font.c_str());
init_pattern(pattern);
FcConfigSubstitute(config, pattern, FcMatchPattern);
FcDefaultSubstitute(pattern);
FcConfigSubstitute(config, pattern, FcMatchFont);
FcPattern *match = FcFontMatch(config, pattern, &result);
FcValue file_value;