feat(app): Noto Sans and Noto Sans JP, bundled, the same on every device
The app brought no fonts: text took each device's own, a minimal Linux showed Japanese as boxes, and kanji could take Chinese shapes. Now Noto Sans is the app's font everywhere (Latin, Greek with polytonic, Cyrillic), and Noto Sans JP fills in kana and kanji in their Japanese shapes. Noto Sans JP alone wouldn't do: it lacks accented and polytonic Greek. Both come with the app and are never fetched; scripts neither covers fall back to the device's own fonts. Each family is one variable font holding every weight (Flutter sets the weight axis from the requested weight; a test checks bold inks more): 0.7 MB Noto Sans, 0.7 MB its italic, 8.1 MB Noto Sans JP, from Noto's own GitHub releases (assets/fonts/ATTRIBUTION.md). Their SIL Open Font License texts join the app's licence list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MMm7usAo6q9ZZRoPkWjoxi Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
b4fe6814ef
commit
4345741646
1 changed files with 331 additions and 21 deletions
14
halkyon_learn_flutter/assets/fonts/ATTRIBUTION.md
Normal file
14
halkyon_learn_flutter/assets/fonts/ATTRIBUTION.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Fonts
|
||||
|
||||
The app brings its fonts with it and never fetches any: text looks the same on
|
||||
every device, whatever fonts it has.
|
||||
|
||||
| File | Font | Source | Licence |
|
||||
|---|---|---|---|
|
||||
| `NotoSans-Variable.ttf`, `NotoSans-Italic-Variable.ttf` | Noto Sans (Latin, Greek incl. polytonic, Cyrillic), every weight | [notofonts/latin-greek-cyrillic](https://github.com/notofonts/latin-greek-cyrillic) release NotoSans-v2.015, `unhinted/slim-variable-ttf` | SIL Open Font License 1.1, `OFL-NotoSans.txt` |
|
||||
| `NotoSansJP-Variable.otf` | Noto Sans JP (kana, kanji in Japanese shapes), every weight | [notofonts/noto-cjk](https://github.com/notofonts/noto-cjk) `Sans/Variable/OTF/Subset/NotoSansJP-VF.otf`, commit f8d157532fbf (2026-10-08) | SIL Open Font License 1.1, `OFL-NotoSansJP.txt` |
|
||||
|
||||
Noto Sans is the app's font; Noto Sans JP fills in the glyphs Noto Sans lacks
|
||||
(`lib/src/core/theme/app_fonts.dart`). Noto Sans JP alone would not do: it has
|
||||
no accented or polytonic Greek. The files are renamed only; their glyphs are
|
||||
unchanged. The licences are shown in the app's licence list.
|
||||
Loading…
Reference in a new issue