mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 08:51:07 +01:00
[hb-draw] Fix PNG image Y positioning
Position PNG images at y_bearing to place them correctly in the glyph box. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
882f405e52
commit
22d8dbfe81
1 file changed
+1
-1
@@ -754,7 +754,7 @@ paint_image (hb_paint_funcs_t *, svg_paint_data_t *data,
|
||||
g_string_append (body, "<g transform=\"translate(");
|
||||
data->that->append_num_to (body, (float) extents->x_bearing, data->that->precision);
|
||||
g_string_append_c (body, ',');
|
||||
data->that->append_num_to (body, (float) (extents->y_bearing + extents->height), data->that->precision);
|
||||
data->that->append_num_to (body, (float) extents->y_bearing, data->that->precision);
|
||||
g_string_append (body, ") scale(");
|
||||
data->that->append_num_to (body, (float) extents->width / width, data->that->precision);
|
||||
g_string_append_c (body, ',');
|
||||
|
||||
Reference in new issue
Block a user