mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-26 19:36:46 -06:00
Text runs get bidi embedding levels from the Unicode bidi algorithm (unicode-bidi, MIT/Apache-2.0). Right-to-left runs are shaped right to left, kept in logical order for line breaking and placed in visual order per line (rule L2, trailing spaces at the paragraph level). Glyphs and lines know their direction, so the caret, clicks and selection highlights follow right-to-left runs. Text without right-to-left characters skips the analysis. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
469 B
TOML
18 lines
469 B
TOML
[package]
|
|
name = "figcraft-text"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "FigCraft text: font database (embedded craft-fonts + system fonts), shaping, line layout, glyph outlines"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
figcraft-geom = { workspace = true }
|
|
figcraft-doc = { workspace = true }
|
|
skrifa = { workspace = true }
|
|
harfrust = { workspace = true }
|
|
unicode-bidi = { workspace = true }
|
|
log = { workspace = true }
|