mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 17:44:06 +01:00
[varc] Fix get_upem()
This commit is contained in:
1 parent
599d08a578
commit
85237065cf
1 file changed
+1
-1
@@ -272,7 +272,7 @@ VarComponent::get_path_at (hb_font_t *font, hb_codepoint_t parent_gid, hb_draw_s
|
||||
transform.scaleY = transform.scaleX;
|
||||
|
||||
// Scale the transform by the font's scale
|
||||
float upem = font->face->upem;
|
||||
float upem = font->face->get_upem ();
|
||||
float x_scale = font->x_scale / upem;
|
||||
float y_scale = font->y_scale / upem;
|
||||
transform.translateX *= x_scale;
|
||||
|
||||
Reference in new issue
Block a user