diff --git a/crates/epaint/src/text/font.rs b/crates/epaint/src/text/font.rs index d675d28b8..eb5f4f79a 100644 --- a/crates/epaint/src/text/font.rs +++ b/crates/epaint/src/text/font.rs @@ -795,11 +795,6 @@ impl Font<'_> { s.chars().all(|c| self.has_glyph(c)) } - /// Segment text into runs where each run uses a single font face. - /// - /// Grapheme clusters are never split across runs: if a combining mark - /// falls back to a different font than its base character, it stays - /// with the base character's font (the shaper will handle it). /// Segment text into runs where each run uses a single font face. /// /// Grapheme clusters are never split across runs: if a combining mark diff --git a/crates/epaint/src/text/text_layout.rs b/crates/epaint/src/text/text_layout.rs index 40f8025e7..2dfdabe99 100644 --- a/crates/epaint/src/text/text_layout.rs +++ b/crates/epaint/src/text/text_layout.rs @@ -341,7 +341,7 @@ fn layout_section( // Set buffer flags for paragraph boundary context. let mut flags = harfrust::BufferFlags::empty(); - if seg_idx == 0 && run_idx == 0 { + if run_idx == 0 { flags |= harfrust::BufferFlags::BEGINNING_OF_TEXT; } if run_idx + 1 == num_runs {