mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 17:01:17 +01:00
[hb-view] Fix render_color_glyph extents coordinate system
Needs cairo fix: https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/371
This commit is contained in:
1 parent
95ccd66481
commit
bec5354030
1 file changed
+1
-1
@@ -366,7 +366,7 @@ render_color_glyph (cairo_scaled_font_t *scaled_font,
|
||||
hb_glyph_extents_t hb_extents;
|
||||
hb_font_get_glyph_extents (font, glyph, &hb_extents);
|
||||
extents->x_bearing = (double) hb_extents.x_bearing / x_scale;
|
||||
extents->y_bearing = (double) hb_extents.y_bearing / y_scale;
|
||||
extents->y_bearing = (double)-hb_extents.y_bearing / y_scale;
|
||||
extents->width = (double) hb_extents.width / x_scale;
|
||||
extents->height = (double) hb_extents.height / y_scale;
|
||||
|
||||
|
||||
Reference in new issue
Block a user