mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 06:25:03 +00:00
[font] Fix build with no-var configs
This commit is contained in:
parent
91b779e23c
commit
24650624c8
1 changed files with 2 additions and 0 deletions
|
@ -1544,8 +1544,10 @@ hb_font_create (hb_face_t *face)
|
|||
hb_ot_font_set_funcs (font);
|
||||
#endif
|
||||
|
||||
#ifndef HB_NO_VAR
|
||||
if (face && face->index >> 16)
|
||||
hb_font_set_var_named_instance (font, (face->index >> 16) - 1);
|
||||
#endif
|
||||
|
||||
return font;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue