Skip to content

Fonts: finish Thai fallback delivery for desktop and web releases - #1311

Merged
echelon merged 1 commit into
storytold:mainfrom
LabDennis:fix/736-thai-release-fonts
Oct 15, 2026
Merged

echelon merged 1 commit into
storytold:mainfrom
LabDennis:fix/736-thai-release-fonts

Conversation

@LabDennis

@LabDennis LabDennis commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Thai folder names still render as boxes in release builds even after #750: the release/FreeBSD/Nix font pin predates Noto Sans Thai, and the web build discards every face except BIZ UDPGothic Regular.

  • Pin release jobs, FreeBSD and Nix to the merged craft-fonts main 3d9ab3a132ed0eff457e424226a435a901da30d3, which includes Thai.
  • Include Noto Sans Thai Regular in the web subset (218,652 bytes). The large Chinese face remains a separately loaded asset.
  • Reject required release inputs without Thai, while keeping optional builds without craft-fonts supported.
  • Check the actual Thai glyphs in Studio34 ถ่ายภาพงานแต่งงาน through proportional, semibold and monospace UI fonts.
  • Ship original font licence texts in Windows MSI installers as well as portable packages, and update attribution/web documentation.

The upstream merge keeps the new wheel-scroll regression and variable-font semibold support. The Thai test now accepts the dedicated strong variant and still verifies its glyph coverage. One equivalent boolean simplification in the upstream preview-failure indicator also fixes the strict Clippy check; it does not change rendering behavior.

Refs #736. Builds on merged #750 and storytold/craft-fonts#15. This uses merged font assets and does not depend on craft-fonts#23. No roadmap or agent-instruction changes.

Direct build-script checks pass for desktop and web font selection, rejection of the old required input, and optional absent input. Windows licence-bundle checks preserve every original licence text and cover a build without craft-fonts; PowerShell and WiX XML parse successfully. A complete MSI was not built locally. The Nix NAR hash was calculated from the pinned Git tree and the calculation reproduces the old lock's hash; no Nix build was run on Windows.

Validation after syncing upstream b3d392b4994ee99dc389890f006600769d0c4ff5 (Windows, Rust 1.95.0): 810 UI library tests passed, 3 existing ignored, with the desktop lightcraft-engine/denoise feature enabled; all seven theme/font tests pass. UI-only strict Clippy, formatting, assets, layers, parity references and all 28 WASM crate checks pass. The initial isolated UI run omitted the desktop denoise feature and failed six model-setup tests; all six pass with that feature, without weakening their assertions.

The full cargo xtask ci remains blocked at pre-existing collapsible_match diagnostics in unchanged crates/meta/src/gpx.rs:118 and crates/meta/src/xmp.rs:256; subsequent full-workspace test stages did not run. The focused checks above were run separately. No claim that the full workspace CI is green. Immediately before pushing, upstream was re-fetched, #736 remained open, and no overlapping font-delivery PR was open.

Related cross-app reports

The existing #736 report explicitly describes Thai UI text across several Craft apps. The same interface/filename symptom is also reported in storytold/pdfcraft#440, storytold/pdfcraft#1035 (item 1), storytold/pdfcraft#664 (item 1) and storytold/pdfcraft#218 (interface text).

These are related font-delivery reports, not issues closed by this LightCraft PR. Each app has its own font selection and release input; PDF text editing and corrupted saved filenames in the broader reports are separate problems.

Synced with upstream a4b53b28cc52b68d9f5bdca09fa5666cdad5ad5f. UI tests: 835 passed, 3 existing ignored, 6 failed. All six failures were independently reproduced on an unchanged upstream checkout: tests_model_setup assumes denoise models are runnable in this build. Those unrelated tests and assertions are unchanged. The Thai glyph tests, native/WASM font-input checks, missing-Thai rejection and complete Windows font-licence bundle checks passed. Formatting, assets and dependency layers were also checked. This is targeted Windows validation, not a green full-CI claim.

The branch is now based on upstream 3b4279fc2485. History: 3 → 1 commits. The rewritten file tree was checked against the previous PR plus current upstream, preserving prior integration resolutions.

Scoped Windows regression checks: 6 passed, 0 ignored, zero failures. Applicable formatting, locked Cargo metadata and repository tooling checks passed. This is scoped validation, not a new full-workspace or cross-platform CI claim.

Retain the complete reviewed change, including prior integration resolutions,
on current upstream.

#736: deliver Thai UI fonts in desktop and web releases

Use the merged craft-fonts input containing Noto Sans Thai across release,
FreeBSD and Nix builds. Retain the small Thai face in the wasm subset and
reject required release inputs that lack it. Exercise the reported Thai
folder name through all UI families and include original font licence texts
in Windows installers as well as portable packages.

Refs #736; completes delivery of the fallback added in #750.

Validation: UI tests, UI-only strict Clippy, 28 wasm checks, HEIF checks,
assets, layers, parity and formatting pass. All 21 unrelated workspace
failures reproduce with upstream Rust sources and the old font input;
existing Rust 1.95 metadata/engine Clippy findings remain unchanged.
@echelon

echelon commented Oct 15, 2026

Copy link
Copy Markdown
Member

Thank you @LabDennis! This landed on main in integration batch 36 (#1843).

If you haven't already, please join our Discord: https://discord.gg/artcraft. We'd love to have you there.

geazzysena pushed a commit to geazzysena/lightcraft that referenced this pull request Oct 15, 2026
…yml pins (3d9ab3a, with Noto Sans Thai)

Windows ARM64 on main failed since batch 36: storytold#1479's scripts pinned 8dcdacd, which predates the Thai face storytold#1311
made required.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants