Type: ruby (ふりがな) for live text

Squashed from #3448 onto main.
This commit is contained in:
bflatastic
2026-10-22 00:10:56 +07:00
parent 2cd7f156fb
commit 14f804cdee
39 changed files with 977 additions and 15 deletions
+4
View File
@@ -2480,6 +2480,10 @@ fn text_geom_snapped(t: &TextObject, snap: Option<Affine>) -> TextGeom {
alternate_candidates.push(AlternateCandidate { byte: g.byte, len: g.len, font_id: g.font_id, gid: g.gid, cell });
}
}
// Ruby (furigana) glyphs: painted with their base text's run.
for g in &layout.ruby {
push(&mut all, g.run, &g.outline);
}
// Underline and strikethrough bars, painted as their run's type is (#847).
for (run, bar) in vectorcraft_text::decorations(&layout, db, t) {
push(&mut all, run, &bar);