mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-25 03:53:53 +01:00
Hebrew folder and file names drew as boxes: no face in the UI fallback chain (Inter, egui's default faces, the craft-fonts faces) has Hebrew letters. theme::font_definitions already falls back on every craft-fonts face of a non-CJK script, so the glyphs come from Noto Sans Hebrew, added to craft-fonts in storytold/craft-fonts#12: - Pin craft-fonts to 1466a88, the head of that PR (release and FreeBSD workflows, flake.nix/flake.lock, local packaging scripts). Re-pin to its merge commit once it lands. - CRAFT_FONTS_REQUIRED rejects a font input without Noto Sans Hebrew Regular, so a release can't ship boxes with an older pin. - The web build embeds Noto Sans Hebrew Regular (~65 KiB) next to Noto Sans Thai, for Hebrew file and folder names in every UI language. - The Thai folder-name test becomes a helper; a Hebrew test (letters, final forms, maqaf, geresh, gershayim, niqqud) runs it through every UI family, and the engine checks that the shipped face draws Hebrew and the shekel sign. They fail with a craft-fonts input without Hebrew and skip without CRAFT_FONTS_DIR. The egui check leaves out the shekel sign: Inter and Hack draw it before the Hebrew face, and in monospace Hack also holds the replacement glyph, where egui 0.36's has_glyph answers false (resolve_face(c) == replacement face) although the sign draws. Reading direction, measured on the laid-out galley: egui 0.36 shapes each run of one face with harfrust, which orders a Hebrew run right to left, so each word reads correctly. Nothing reorders the runs, and the space between words comes from Inter, so a multi-word name shows its words in logical order, left to right (documented in docs/localization-parity.md and docs/web.md). Part of #1915. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.1 KiB
JSON
46 lines
1.1 KiB
JSON
{
|
|
"nodes": {
|
|
"craft-fonts": {
|
|
"flake": false,
|
|
"locked": {
|
|
"lastModified": 1791798042,
|
|
"narHash": "sha256-kFLq0Lj0hAp0/7XhlzL1Dc9lV7/SiIXm3vN1+39X2Uk=",
|
|
"owner": "storytold",
|
|
"repo": "craft-fonts",
|
|
"rev": "1466a883ae5ac0a7d76cfe7f9d56fe0240acb255",
|
|
"type": "github"
|
|
},
|
|
"original": {
|
|
"owner": "storytold",
|
|
"repo": "craft-fonts",
|
|
"rev": "1466a883ae5ac0a7d76cfe7f9d56fe0240acb255",
|
|
"type": "github"
|
|
}
|
|
},
|
|
"nixpkgs": {
|
|
"locked": {
|
|
"lastModified": 1791260994,
|
|
"narHash": "sha256-Miqqk/ammqnTUxaoCyvtwoPeLbI1ksFyLxi/CazZpWY=",
|
|
"owner": "NixOS",
|
|
"repo": "nixpkgs",
|
|
"rev": "151fa4e8ddfdd8dd25d945ad94ed54a13de9f6e4",
|
|
"type": "github"
|
|
},
|
|
"original": {
|
|
"owner": "NixOS",
|
|
"ref": "nixos-unstable",
|
|
"repo": "nixpkgs",
|
|
"type": "github"
|
|
}
|
|
},
|
|
"root": {
|
|
"inputs": {
|
|
"craft-fonts": "craft-fonts",
|
|
"nixpkgs": "nixpkgs"
|
|
}
|
|
}
|
|
},
|
|
"root": "root",
|
|
"version": 7
|
|
}
|