Skip to content

fontconfig: keep binaries; add script to tools for additional fonts#2880

Open
xzn wants to merge 1 commit into
ROCKNIX:nextfrom
xzn:cjk_fonts
Open

fontconfig: keep binaries; add script to tools for additional fonts#2880
xzn wants to merge 1 commit into
ROCKNIX:nextfrom
xzn:cjk_fonts

Conversation

@xzn

@xzn xzn commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Add fc-cache and friends binaries (they are less than half a megabyte total before compression) to allow updating fontconfig cache. (This is the main change)

Add a script to install Noto CJK fonts, with placeholder image. (As an example but it's useful anyhow)

Testing

Fresh clean build on Ayn Thor. Newly installed fonts works in Steam and Heroic file browser. Should work anywhere where fontconfig is used.

Additional Context

Should supersede #2875


AI Usage

While ROCKNIX doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? NO

@ddordie

ddordie commented Jun 18, 2026

Copy link
Copy Markdown

Tested on-device: Serif CJK overrides the system sans-serif UI font, breaking Chinese display. Maybe switch to Sans2.004?

@xzn

xzn commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Tested on-device: Serif CJK overrides the system sans-serif UI font, breaking Chinese display. Maybe switch to Sans2.004?

Good point! Added Sans and Mono fonts; also added fontconfig config file.

Still not working in retroarch though hmmm, maybe will need to adjust font manually there.

@loki666

loki666 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

in which scenario is this usefull ?

@xzn

xzn commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

I haven't needed this personally, but there are games on Steam (say Touhou fangames) that has Chinese descriptions, which do not get displayed in the Steam store web browser due to lack of fonts. Likely the same for Heroic.

For Retroarch the script now downloads Noto Sans CJK ttf fonts to /storage/assets/fonts. After that if the user manually sets the desired font in retroarch settings, the language can then be set to one of the CJK languages and have the UI display correctly (instead of having boxes).

fc-cache is likely useful for other fonts in addition to Noto CJK, in case user wants to install their own fonts manually, so they can update fontconfig cache.

Not sure about EmulationStation though? It seems to have its own CJK fonts.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants