[font] Update multipliers when creating sub_font

Fixes https://github.com/harfbuzz/harfbuzz/issues/1910
This commit is contained in:
Behdad Esfahbod 2019-08-20 13:06:10 -07:00
parent bbad1b8298
commit aaa85931f3
1 changed files with 1 additions and 0 deletions

View File

@ -1385,6 +1385,7 @@ hb_font_create_sub_font (hb_font_t *parent)
font->x_scale = parent->x_scale; font->x_scale = parent->x_scale;
font->y_scale = parent->y_scale; font->y_scale = parent->y_scale;
font->mults_changed ();
font->x_ppem = parent->x_ppem; font->x_ppem = parent->x_ppem;
font->y_ppem = parent->y_ppem; font->y_ppem = parent->y_ppem;
font->ptem = parent->ptem; font->ptem = parent->ptem;