From 0954c8f7a003b4130cfdc1b3f29db8c57953a78f Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 1 Sep 2019 17:09:08 +0200 Subject: [PATCH] [ft] Prefer symbol cmap subtable if found (#1948) Similar to commit d304d60e4d49df14ed85d6646680085f27bafbf2 for ot-font. --- src/hb-ft.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ft.cc b/src/hb-ft.cc index ec4748c2e..19c49283d 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -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),