elementary / stylesheet

The GTK Stylesheet for elementary OS
https://elementary.io
GNU General Public License v3.0
320 stars 74 forks source link

Gtk.HeaderBar: Serif is used for Japanese texts instead of sans-serif in Flatpak apps #1099

Closed ryonakano closed 2 years ago

ryonakano commented 2 years ago

What Happened?

Japanese texts in Gtk.HeaderBar of Flatpak apps are shown in serif font instead of sans-serif, as you can see the word "ドキュメントビューアー" (means "Document Viewer" in Japanese) in the following screenshot:

Screenshot from 2021-11-10 21-21-10

FYI if you select Adwaita instead of elementary stylesheet it shows in sans-serif as expected, so I assumed this is a stylesheet issue:

Screenshot from 2021-11-10 21-25-56

Steps to Reproduce

  1. Open some Flatpak app with Gtk.HeaderBar in Japanese in the following steps:
    • Open Terminal
    • Run flatpak run --command=sh org.gnome.Evince
    • Run LANGUAGE=ja evince in the sandboxed terminal
  2. See the headerbar: the Japanese text "ドキュメントビューアー" is shown in the serif font instead of a sans-serif font, as per the following screenshot:

Screenshot from 2021-11-10 21-21-10

Expected Behavior

Japanese texts in the headerbar of Flatpak apps should also use sans-serif same as other widgets, like this:

Screenshot from 2021-11-10 21-21-28

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

N/A

Hardware Info

Screenshot from 2021-11-10 21-54-47