Giter Club home page Giter Club logo

Comments (4)

KyleGospo avatar KyleGospo commented on May 16, 2024

Thank you!
c87d9fe

from bazzite.

szescxz avatar szescxz commented on May 16, 2024

Located the fix for the tofus on Steam update screen ("Steam Bootstrapper") as well - I believe Valve has hardcoded the path to the font files. Game Mode is CEF-based so doesn't have such issue (and actually uses the correct region-specific glpyh).

$ strings $HOME/.local/share/Steam/ubuntu12_32/steam

Search for CJK in the output for a quick proof. Read on for digged details after reverse engineering.


In addition to $HOME/.steam/root//tenfoot/resource/fonts/tenfoot.uifont (sic) and /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf (see also negativo17/steamos-base-files#1), Steam is expecting one of these font files:

NotoSansCJK-Medium.ttc
NotoSansCJK-Light.ttc
NotoSansCJK-Regular.ttc # <- looking for this one first

under either of the following path:

/usr/share/fonts/noto-cjk # <- path used in Arch Linux (including SteamOS 3.x)
/usr/share/fonts/opentype/noto # <- path used in Debian-based distros

Working PoC:

$ sudo ostree admin unlock
$ sudo ln -s /usr/share/fonts/google-noto-sans-cjk-fonts /usr/share/fonts/noto-cjk

from bazzite.

KyleGospo avatar KyleGospo commented on May 16, 2024

7dd9580

from bazzite.

szescxz avatar szescxz commented on May 16, 2024

@KyleGospo
Things are broken again in F39. I believe patches applied to F38 in ublue-os/main#334 needs to be applied to F39 as well.

  • Right now Droid Sans Fallback (provided by google-droid-sans-fonts) gets picked by the Game Mode UI; fine with Chinese and Japanese but still broken with Korean
  • Symlink I proposed is broken on F39 as google-noto-sans-cjk-fonts is not installed, causing the tofus on the Steam Bootstrapper screen again

Fixed by rpm-ostree install google-noto-sans-cjk-fonts; no need to remove any packages (google-noto-sans-cjk-vf-fonts is already removed, and even not installable on my device).

from bazzite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.