mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-24 10:16:59 -06:00
- hyphen: bundled en-US dictionary from the public-domain Moby Hyphenator II list (Grady Ward, Gutenberg #3204), front-coded + deflated (433 KB), with case/apostrophe/punctuation/compound handling and inflection inheritance; our own Liang patterns (19.5k, 129 KB) trained by a patgen-style trainer (hyphen::patgen, examples/hyphgen.rs) for unknown words; heuristic last. Discretionary hyphens replace automatic points. - breaker: prioritised word/letter/glyph-scaling glue in Knuth-Plass and layout; uncapped badness; hyphen limit as a hard constraint (hyphen-count states); hyphenation zone for ragged text (both composers); ragged hyphenation measured correctly; optical margin alignment; balance ragged lines; Knuth's node pruning. - compose: Keep Options (keep with next, keep all lines, keep first/last) via paragraph snapshots; desired spacing applied to all alignments; justified last lines shrink instead of overflowing; word shaping and hyphenation caches (300k-char story: ~40 ms warm, ~60 ms cold). - tests: golden corpus, perf (ignored), keeps, balance, optical, zone, limit, letter/glyph scaling, discretionary hyphens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
1.2 KiB
Plaintext
17 lines
1.2 KiB
Plaintext
DesignCraft
|
|
Copyright the DesignCraft contributors. Licensed under MIT OR Apache-2.0.
|
|
|
|
This product bundles third-party material under the following licences. Per-file attribution
|
|
(author, source, licence) for every asset is in ASSETS.md. No Adobe icons, images or artwork are included.
|
|
|
|
- Source Sans 3 and Source Serif 4 (assets/fonts/Source*) — SIL Open Font License 1.1. See assets/fonts/OFL-SourceSans3.txt, OFL-SourceSerif4.txt.
|
|
- Inter (assets/fonts/Inter-*.ttf) — SIL Open Font License 1.1. See assets/fonts/OFL-Inter.txt.
|
|
- JetBrains Mono (assets/fonts/JetBrainsMono-*.ttf) — SIL Open Font License 1.1. See assets/fonts/OFL-JetBrainsMono.txt.
|
|
- English hyphenation word list (assets/hyphenation/en-us.dic) — derived from the Moby Hyphenator II
|
|
list by Grady Ward, public domain (Project Gutenberg eBook #3204). The hyphenation patterns
|
|
(assets/hyphenation/en-us.pat) are trained from it by DesignCraft and released as CC0-1.0.
|
|
- All UI icons are drawn in code (crates/ui-egui/src/icons.rs) and are original work, MIT OR Apache-2.0.
|
|
|
|
Rust dependencies (vello_cpu, kurbo, skrifa, harfrust, image, egui, eframe, …) are permissively
|
|
licensed (MIT/Apache-2.0/BSD/ISC/Zlib) and fetched through crates.io.
|