ivan-hc / Steam-appimage

Unofficial Steam AppImage built on top of "Conty" (Arch Linux).
GNU General Public License v3.0
29 stars 4 forks source link

Bundle more fonts in? #37

Open jwnhy opened 3 hours ago

jwnhy commented 3 hours ago

It seems that this arch-chroot only bundles in Latin-based (not sure if this is the correct wordy) font and does not include CJK fonts, e.g., wqy-microhei.

This causes problems if the game relies on such font, e.g., RimWorld relies on wqy-microhei.

My current fix is to fork my version and add two packages in the script, wqy-zenhei and wqy-microhei. (it didn't increase the final blob size)

I wonder if you want to merge this, as this is specific to Chinese...

If this can include a minimal set of fonts for most languages, that would be splendid.

Samueru-sama commented 3 hours ago

I think a better solution is to bind mount the users fonts like we already do with the locales @ivan-hc

ivan-hc commented 2 hours ago

it is enough to add this line to the AppRun

--bind-try /usr/share/fonts /usr/share/fonts

the AppRun should look like this then

#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export UNION_PRELOAD="${HERE}"
"${HERE}"/conty.sh --bind-try /usr/share/fonts /usr/share/fonts steam-screensaver-fix-runtime "$@"

@Samueru-sama however, some windows programs or games may not find the correct font if not installed on the host.

What do you think about?

jwnhy commented 1 hour ago

Thanks! Glad to see there is a general solution!

Samueru-sama commented 34 minutes ago

@jwnhy can you try doing what Ivan suggested? the steps are:

 ./Steam-1.0.0.81-2-3-x86_64.AppImage --appimage-extract

Then edit ./squasfs-root/AppRun to look like what Ivan pasted:

#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export UNION_PRELOAD="${HERE}"
"${HERE}"/conty.sh --bind-try /usr/share/fonts /usr/share/fonts steam-screensaver-fix-runtime "$@"

And finally run the AppRun from the terminal ./AppRun

Let me know if the font issue gets fixed.