[ft] Prefer symbol cmap subtable if found (#1948)

Similar to commit d304d60e4d for ot-font.
This commit is contained in:
Khaled Hosny 2019-09-01 17:09:08 +02:00 committed by Behdad Esfahbod
parent 4375858792
commit 0954c8f7a0
1 changed files with 2 additions and 2 deletions

View File

@ -840,8 +840,8 @@ hb_ft_font_set_funcs (hb_font_t *font)
return;
}
if (FT_Select_Charmap (ft_face, FT_ENCODING_UNICODE))
FT_Select_Charmap (ft_face, FT_ENCODING_MS_SYMBOL);
if (FT_Select_Charmap (ft_face, FT_ENCODING_MS_SYMBOL))
FT_Select_Charmap (ft_face, FT_ENCODING_UNICODE);
FT_Set_Char_Size (ft_face,
abs (font->x_scale), abs (font->y_scale),