feat(mtext): render justify and distribute paragraph alignment
`qj`/`qd` were stubbed to left. Now the layout fills the line to the content width: - Distribute (`qd`, and headings that reset with `q*` → justify) shares the slack across every glyph gap — word gaps widen and letters spread via tracking (LFF stroke fonts; TTF with zero letter-spacing spread their word gaps only). Every line, including the paragraph's last. - Justify spreads only the word gaps and leaves the last line ragged. Bumps acadrust to 504281a, which parses `\pqd` as Distributed and `\pq*` as Justified so these alignments reach the layout at all. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
d936e538b7
commit
0de2f76921
2 changed files with 71 additions and 5 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -73,7 +73,7 @@ checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
|
|||
[[package]]
|
||||
name = "acadrust"
|
||||
version = "0.4.0"
|
||||
source = "git+https://github.com/OpenAEC-Foundation/acadifc?branch=main#70d57937c310c1814d624a58e17cf69ab33ba191"
|
||||
source = "git+https://github.com/OpenAEC-Foundation/acadifc?branch=main#504281a468f0218ede6a5437e2f0d90d9c7c243f"
|
||||
dependencies = [
|
||||
"ahash 0.8.12",
|
||||
"anyhow",
|
||||
|
|
|
|||
Loading…
Reference in a new issue