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);
ShapeGlyph {
start: i,
end: i + 1,
start: i + start_run,
end: i + start_run + 1,
x_advance,
y_advance: 0.0,
x_offset: 0.0,