Fix glyph start+end indices in "Basic" shaping

These indices were previously relative to the start of the *run*, when
they should be relative to the start of the *line*.
This commit is contained in:
valadaptive 2025-03-02 14:12:09 -05:00 • committed by Jeremy Soller
parent f7ad0bfa60
commit db9033ba86

View file

@ -455,8 +455,8 @@ fn shape_skip(
let attrs = attrs_list.get_span(start_run + chr_idx); let attrs = attrs_list.get_span(start_run + chr_idx);
ShapeGlyph { ShapeGlyph {
start: i, start: i + start_run,
end: i + 1, end: i + start_run + 1,
x_advance, x_advance,
y_advance: 0.0, y_advance: 0.0,
x_offset: 0.0, x_offset: 0.0,