Mercurial > mplayer.hg
changeset 19001:31b7033c573e
Only match outline fonts.
author | eugeni |
---|---|
date | Mon, 10 Jul 2006 23:55:40 +0000 |
parents | aee345a58803 |
children | da05237044c2 |
files | libass/ass_fontconfig.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_fontconfig.c Mon Jul 10 21:39:33 2006 +0000 +++ b/libass/ass_fontconfig.c Mon Jul 10 23:55:40 2006 +0000 @@ -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;