[MPlayer-cvslog] r19006 - trunk/libass/ass_fontconfig.c
eugeni
subversion at mplayerhq.hu
Tue Jul 11 01:55:40 CEST 2006
Author: eugeni
Date: Tue Jul 11 01:55:40 2006
New Revision: 19006
Modified:
trunk/libass/ass_fontconfig.c
Log:
Only match outline fonts.
Modified: trunk/libass/ass_fontconfig.c
==============================================================================
--- trunk/libass/ass_fontconfig.c (original)
+++ trunk/libass/ass_fontconfig.c Tue Jul 11 01:55:40 2006
@@ -42,6 +42,7 @@
FcPattern *pat, *rpat;
int val_i;
FcChar8* val_s;
+ FcBool val_b;
char buf[2000];
*index = 0;
@@ -62,6 +63,12 @@
if (!rpat)
return 0;
+ result = FcPatternGetBool(rpat, FC_OUTLINE, 0, &val_b);
+ if (result != FcResultMatch)
+ return 0;
+ if (val_b != 1)
+ return 0;
+
result = FcPatternGetInteger(rpat, FC_INDEX, 0, &val_i);
if (result != FcResultMatch)
return 0;
More information about the MPlayer-cvslog
mailing list