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:
parent
f7ad0bfa60
commit
db9033ba86
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue