mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[raster] Honor view line-space in line step
This commit is contained in:
1 parent
323ae8bd6c
commit
d0149e5e2f
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user