Skip to content

Commit

Permalink
update glyph range end when appending fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrg committed Jan 25, 2024
1 parent 88c3a07 commit 5fc234a
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 @@ -104,6 +104,7 @@ impl Encoding {
.glyph_runs
.extend(other.resources.glyph_runs.iter().cloned().map(|mut run| {
run.glyphs.start += glyphs_base;
run.glyphs.end += glyphs_base;
run.normalized_coords.start += coords_base;
run.stream_offsets.path_tags += offsets.path_tags;
run.stream_offsets.path_data += offsets.path_data;
Expand Down

0 comments on commit 5fc234a

Please sign in to comment.