mirror of
https://github.com/mpv-player/mpv
synced 2025-01-04 22:20:22 +00:00
The fontconfig check added in r30044 wasn't safe. This makes it more robust.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30046 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d018006adc
commit
1078baf9aa
@ -1164,7 +1164,7 @@ void load_font_ft(int width, int height, font_desc_t** fontp, const char *font_n
|
||||
FcDefaultSubstitute(fc_pattern);
|
||||
fc_pattern2 = fc_pattern;
|
||||
fc_pattern = FcFontMatch(0, fc_pattern, &result);
|
||||
if (result == FcResultMatch) {
|
||||
if (fc_pattern) {
|
||||
FcPatternDestroy(fc_pattern2);
|
||||
FcPatternGetBool(fc_pattern, FC_SCALABLE, 0, &scalable);
|
||||
if (scalable != FcTrue) {
|
||||
|
Loading…
Reference in New Issue
Block a user