From d6d596bdbf06def465f1aa9b919800b571150377 Mon Sep 17 00:00:00 2001 From: Chad Brokaw Date: Tue, 13 Feb 2024 14:49:26 -0500 Subject: [PATCH] Update end of slice when appending with coords When appending an encoding containing a glyph run with variation coordinates, the end of the range was not updated correctly. --- crates/encoding/src/encoding.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/encoding/src/encoding.rs b/crates/encoding/src/encoding.rs index b39c05df..c9c7677b 100644 --- a/crates/encoding/src/encoding.rs +++ b/crates/encoding/src/encoding.rs @@ -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;