Skip to content

[Bug] org.rustgis.RustGIS: Chinese, Japanese and Korean interface text shows as boxes #1309

Open

Description

@jing2uo

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.

Activity

  1. added
    bug
    on Nov 17, 2026
  2. 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
  3. added
    report-to-upstream
    on Nov 17, 2026
  4. jing2uo commented on Nov 17, 2026

    @jing2uo
    CollaboratorAuthor

    Reported upstream: opengeos/RustGIS#2313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreport-to-upstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions