You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] org.rustgis.RustGIS: Chinese, Japanese and Korean interface text shows as boxes #1309
RustGIS (org.rustgis.RustGIS, #1308) shows boxes for a Chinese, Japanese or Korean interface, and leaves CJK map labels out.
Cause: RustGIS doesn't use fontconfig. It reads CJK fonts from fixed paths (crates/render/src/fonts.rs, cjk_candidates): /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc, /usr/share/fonts/noto-cjk/…, wqy-microhei, plus Windows and macOS paths. In the sandbox /usr/share/fonts is the freedesktop runtime's, with no CJK font. The host's fonts are at /run/host/fonts, which it doesn't search. Its only font variable is RUSTGIS_BUILTIN_FONTS, so the package can't point it elsewhere without changing the payload.
Meanwhile: the metainfo documents it, with flatpak override --user --env=RUSTGIS_LANGUAGE=en org.rustgis.RustGIS for the English interface.
To do: ask upstream to also search /run/host/fonts, /run/host/user-fonts and $XDG_DATA_HOME/fonts, ideally by file name across those roots. Once a release with that is out, check the UI in zh_CN, and remove the known-issue paragraph from the metainfo.
Draft for upstream (not posted yet):
**CJK fonts aren't found inside a Flatpak sandbox**
When RustGIS runs in a Flatpak, `/usr/share/fonts` is the runtime's own folder and has no CJK
font. The host's fonts are mounted at `/run/host/fonts` (system), `/run/host/user-fonts`
(`~/.local/share/fonts`) and `/run/host/local-fonts`. RustGIS looks for CJK faces at fixed
paths under `/usr/share/fonts`, so with a Chinese, Japanese or Korean interface the text draws
as boxes, even though `NotoSansCJK-Regular.ttc` is installed on the host and visible at
`/run/host/fonts/opentype/noto/`.
Could the CJK lookup (and `FONT_ROOTS`) also try the same relative paths under
`/run/host/fonts`, `/run/host/user-fonts` and `$XDG_DATA_HOME/fonts`? Searching those roots for
the known file names, rather than only fixed full paths, would also cover distributions that put
Noto CJK elsewhere.
Context: I'm packaging RustGIS for FlatPark (https://flatpark.org), a Flatpak remote that installs
your official Linux tarball unmodified.
changed the title [-]RustGIS: CJK interface shows boxes (fonts read from fixed /usr/share/fonts paths)[/-][+][Bug] org.rustgis.RustGIS: Chinese, Japanese and Korean interface text shows as boxes[/+]on Nov 17, 2026
Activity
[-]RustGIS: CJK interface shows boxes (fonts read from fixed /usr/share/fonts paths)[/-][+][Bug] org.rustgis.RustGIS: Chinese, Japanese and Korean interface text shows as boxes[/+]jing2uo commentedon Nov 17, 2026
Reported upstream: opengeos/RustGIS#2313