From db9033ba8661f5acce1bb9b51b23a86615a514ac Mon Sep 17 00:00:00 2001 From: valadaptive Date: Sun, 2 Mar 2025 14:12:09 -0500 Subject: [PATCH] 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*. --- src/shape.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shape.rs b/src/shape.rs index ab0cdba..71b19d1 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -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,