Settings: per-device interface font choice
System default plus Inter, IBM Plex Sans, Source Sans 3 and Atkinson Hyperlegible Next (OFL 1.1, bundled as on-demand assets and loaded with FontLoader, so the web fetches only the previewed/chosen files). Stored in shared_preferences, applied live to Material and Cupertino text themes; RobotoMono styles unchanged. Licences registered with LicenseRegistry.
This commit is contained in:
@@ -6,3 +6,22 @@ Christian Robertson, licensed under the Apache License, Version 2.0
|
||||
from the Flutter SDK's DevTools assets. They give monospace text (artifact text
|
||||
previews, background task output) a real fixed-width face on every platform:
|
||||
Flutter web does not resolve the generic `monospace` family.
|
||||
|
||||
## Optional interface fonts
|
||||
|
||||
Chosen per device in Settings > Font (`lib/ui/theme/app_font.dart`). They are
|
||||
declared as plain `assets:`, not `fonts:`, so Flutter web does not download them
|
||||
at startup; the chosen family is registered on demand with a `FontLoader`. Each
|
||||
directory holds the unmodified Regular (400), Medium (500), SemiBold (600) and
|
||||
Bold (700) static TTFs and the family's SIL Open Font License 1.1 as `OFL.txt`,
|
||||
which is also registered with `LicenseRegistry`.
|
||||
|
||||
| Directory | Family | Source | Licence |
|
||||
| --- | --- | --- | --- |
|
||||
| `inter/` | Inter 4.1 | github.com/rsms/inter release v4.1, `Inter-4.1.zip`, `extras/ttf/` | OFL 1.1, (c) The Inter Project Authors |
|
||||
| `ibm-plex-sans/` | IBM Plex Sans 1.1.0 | github.com/IBM/plex release `@ibm/plex-sans@1.1.0`, `ibm-plex-sans.zip`, `fonts/complete/ttf/` | OFL 1.1, (c) IBM Corp., Reserved Font Name "Plex" |
|
||||
| `source-sans-3/` | Source Sans 3.052 | github.com/adobe-fonts/source-sans release 3.052R, `TTF-source-sans-3.052R.zip`; licence text from `LICENSE.md` at that tag | OFL 1.1, (c) Adobe, Reserved Font Name "Source" |
|
||||
| `atkinson-hyperlegible-next/` | Atkinson Hyperlegible Next | github.com/googlefonts/atkinson-hyperlegible-next (no releases) at commit 7925f50f, `fonts/ttf/` and `OFL.txt` | OFL 1.1, (c) The Atkinson Hyperlegible Next Project Authors |
|
||||
|
||||
The files are unmodified (no subsetting), so the Reserved Font Names stay
|
||||
usable.
|
||||
|
||||
Reference in New Issue
Block a user