From 15eb6bdb326c550faadf45ccec7a5ec8daef095d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 16 Feb 2026 16:09:18 -0300 Subject: [PATCH] [hb-draw] Set variations on the upem font --- util/draw-output.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/draw-output.hh b/util/draw-output.hh index 4ec04d85d..034099932 100644 --- a/util/draw-output.hh +++ b/util/draw-output.hh @@ -144,6 +144,12 @@ struct draw_output_t : output_options_t<> upem_font = hb_font_create (hb_font_get_face (font)); hb_font_set_scale (upem_font, upem, upem); +#ifndef HB_NO_VAR + unsigned int coords_length; + const float *coords = hb_font_get_var_coords_design (font, &coords_length); + if (coords_length) + hb_font_set_var_coords_design (upem_font, coords, coords_length); +#endif path = g_string_new (nullptr); draw_funcs = hb_draw_funcs_create ();