mirror of
https://github.com/mpv-player/mpv
synced 2025-02-25 17:58:27 +00:00
Only match outline fonts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19006 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1f991fa712
commit
6127b2c08f
@ -42,6 +42,7 @@ static char* _select_font(fc_instance_t* priv, const char* family, unsigned bold
|
||||
FcPattern *pat, *rpat;
|
||||
int val_i;
|
||||
FcChar8* val_s;
|
||||
FcBool val_b;
|
||||
char buf[2000];
|
||||
|
||||
*index = 0;
|
||||
@ -62,6 +63,12 @@ static char* _select_font(fc_instance_t* priv, const char* family, unsigned bold
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user