popup: use system fonts exclusively

This commit is contained in:
2026-08-14 15:17:00 +09:00
parent 54355b8190
commit 08369e718e
14 changed files with 34 additions and 116 deletions

View File

@@ -51,26 +51,22 @@ dependencies listed in [`Dockerfile`](Dockerfile) are installed.
## Run
The popup needs one to four font files. No fonts are bundled. Each file is
validated and registered with Pango as an application font. Pango shapes the
complete string and chooses glyph fallback from those fonts and the normal
system fonts; command-line file order is not an exact per-glyph fallback
contract.
`run.sh` uses installed Noto Color Emoji, DejaVu, Jigmo, or Noto CJK fonts when
available, or accepts explicit files. Supply a color emoji font such as Noto
Color Emoji to render emoji in color:
The popup uses the normal system fonts found by Pango and Fontconfig; no font
file argument or system-wide strans installation is required. Run it directly
from the build tree:
```sh
./run.sh
./run.sh /path/to/primary.ttf /path/to/fallback.ttc
# daemon only
./strans map
```
The popup renderer requires Pango/PangoCairo 1.56 or newer and Cairo 1.18 or
newer.
Pango shapes the complete string and selects glyph fallback from the system
font set.
The script starts the daemon and, when `DISPLAY` is set, the XIM frontend. It
restarts any existing `strans` processes owned by the current user.
The popup renderer requires Pango/PangoCairo 1.56 or newer and Cairo 1.18 or
newer. `run.sh` starts the daemon and, when `DISPLAY` is set, the XIM frontend.
It restarts existing `strans` processes owned by the current user.
Configure clients as needed: