fontconfig: keep binaries; add script to tools for additional fonts - #2880
fontconfig: keep binaries; add script to tools for additional fonts#2880xzn wants to merge 1 commit into
Conversation
|
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. |
|
in which scenario is this usefull ? |
|
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
Not sure about EmulationStation though? It seems to have its own CJK fonts. |
|
I dont really love the idea of adding a install script to to the tools section to just install a font set. |
|
Agree on that, I think at the minimum though the That way user can install their own font and update fontconfig cache. I can update the pr to do just that part. If you have idea on where to put the font install script let me know and I can update it as well. One way would be to just have the |
I think this is preferred for me, it's an additional 13MB on the images installing CJK font permanently. Thoughts? |
c93f6bd to
135d112
Compare
Summary
Add
fc-cacheand 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