[raster] Honor view line-space in line step

This commit is contained in:
Behdad Esfahbod committed 2026-02-25 16:28:24 -03:00
1 parent 323ae8bd6c
commit d0149e5e2f
1 file changed
+3
+3
View File
@@ -195,6 +195,9 @@ struct raster_output_t : output_options_t<true>, view_options_t
hb_font_extents_t extents = {};
hb_font_get_extents_for_direction (font, dir, &extents);
float step = fabsf ((float) (extents.ascender - extents.descender + extents.line_gap));
step += (float) line_space;
if (step < 0.f)
step = 0.f;
if (!(step > 0.f))
{
int x_scale = 0, y_scale = 0;