7d2c3412a1
Adds the Paper design and generalises design tokens (transcript, composer, selected-row styles, reading type, panel fill, chat colour saturation). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
68 lines
4.0 KiB
Markdown
68 lines
4.0 KiB
Markdown
# Bundled fonts
|
|
|
|
`RobotoMono-Regular.ttf` and `RobotoMono-Bold.ttf` are Roboto Mono by
|
|
Christian Robertson, licensed under the Apache License, Version 2.0
|
|
(https://www.apache.org/licenses/LICENSE-2.0). The files are copied unchanged
|
|
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.
|
|
|
|
## Terminal symbols
|
|
|
|
`symbols-nerd-font/SymbolsNerdFontMono-Subset.ttf` (568 KiB) is a subset of
|
|
Symbols Nerd Font Mono from Nerd Fonts 3.5.1
|
|
(github.com/ryanoasis/nerd-fonts release v3.5.1, `NerdFontsSymbolsOnly.tar.xz`,
|
|
`SymbolsNerdFontMono-Regular.ttf`, 2.5 MiB). The terminal views list it first
|
|
among their fallback families, so Powerline and Nerd Font prompt glyphs draw
|
|
on every platform and offline (Flutter web's own fallback fetches Noto fonts
|
|
from Google's CDN, which has none of these). It is a plain asset registered
|
|
with a `FontLoader` the first time a terminal is drawn
|
|
(`lib/ui/text/terminal_symbols_font.dart`), not a startup download.
|
|
|
|
Kept ranges (`pyftsubset --unicodes=...`, fontTools 4): Powerline and
|
|
Powerline Extra U+E0A0-E0D7, Seti-UI U+E5FA-E6B7, Font Awesome U+ED00-F2FF,
|
|
Font Logos U+F300-F381, Octicons U+F400-F533 with U+2665 and U+26A1, IEC power
|
|
symbols U+23FB-23FE and U+2B58. Left out for size: Devicons, Codicons,
|
|
Weather, Pomicons and Material Design (1.2 MiB alone). The box drawing,
|
|
block and Powerline separator characters are drawn by the emulator itself
|
|
and do not need the font.
|
|
|
|
Licences: the font and the patcher are MIT (`symbols-nerd-font/LICENSE`,
|
|
(c) 2014 Ryan L McIntyre, registered with `LicenseRegistry`); the kept icon
|
|
sets are Powerline Extra, Seti-UI and Octicons MIT, Font Awesome 6 CC BY 4.0
|
|
(icons, attribution: Fonticons, Inc.), Font Logos Unlicense. See the Nerd
|
|
Fonts README's icon set table.
|
|
|
|
## 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.
|
|
|
|
## Paper reading serif
|
|
|
|
`source-serif-4/` holds Source Serif 4.005 (github.com/adobe-fonts/source-serif
|
|
release 4.005R, `source-serif-4.005_Desktop.zip`, `TTF/`): the unmodified
|
|
Regular, Italic, Semibold and Semibold Italic files of the default (Text)
|
|
optical size, and `LICENSE.md` from the same archive as `OFL.txt` (SIL Open
|
|
Font License 1.1, (c) Adobe, Reserved Font Name "Source"). The Paper design
|
|
sets chat and document text in it (`lib/ui/theme/paper_fonts.dart`). Like the
|
|
interface fonts it is a plain asset registered with a `FontLoader` when Paper
|
|
is first chosen, so neither the web build nor the other designs download it.
|
|
It draws the transcript's `•`, `→` and `✓` itself (no fallback fetch). Its
|
|
italic has no small-caps feature, so Paper's small-caps labels are set as
|
|
spaced capitals at a smaller size.
|