Skip to content

Commit

Permalink
Update end of slice when appending with coords
Browse files Browse the repository at this point in the history
When appending an encoding containing a glyph run with variation coordinates, the end of the range was not updated correctly.
  • Loading branch information
dfrg committed Feb 13, 2024
1 parent d16df77 commit d6d596b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/encoding/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ impl Encoding {
run.glyphs.start += glyphs_base;
run.glyphs.end += glyphs_base;
run.normalized_coords.start += coords_base;
run.normalized_coords.end += coords_base;
run.stream_offsets.path_tags += offsets.path_tags;
run.stream_offsets.path_data += offsets.path_data;
run.stream_offsets.draw_tags += offsets.draw_tags;
Expand Down

0 comments on commit d6d596b

Please sign in to comment.