diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-02 13:41:23 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-02 13:41:23 +0200 |
commit | ebf8a285b21b168be6e9853b8178d2352e58acc1 (patch) | |
tree | 1133614c4a8f353ca81848fb7821cae2b1278f52 /font.c | |
parent | 2de28295fc899065d6be129a2294cf5554cb717b (diff) | |
download | vdr-ebf8a285b21b168be6e9853b8178d2352e58acc1.tar.gz vdr-ebf8a285b21b168be6e9853b8178d2352e58acc1.tar.bz2 |
Fixed font handling with fontconfig 2.9.0 or newer
Diffstat (limited to 'font.c')
-rw-r--r-- | font.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,7 +6,7 @@ * * BiDi support by Osama Alrawab <alrawab@hotmail.com> @2008 Tripoli-Libya. * - * $Id: font.c 2.12 2012/06/02 13:32:19 kls Exp $ + * $Id: font.c 2.13 2012/06/02 13:38:28 kls Exp $ */ #include "font.h" @@ -482,7 +482,8 @@ cString cFont::GetFontFileName(const char *FontName) FcPatternAddBool(pat, FC_SCALABLE, FcTrue); FcConfigSubstitute(NULL, pat, FcMatchPattern); FcDefaultSubstitute(pat); - FcFontSet *fontset = FcFontSort(NULL, pat, FcFalse, NULL, NULL); + FcResult fresult; + FcFontSet *fontset = FcFontSort(NULL, pat, FcFalse, NULL, &fresult); if (fontset) { for (int i = 0; i < fontset->nfont; i++) { FcBool scalable; |