I hope we will figure out the reason for this snap behavior.

Otherwise there are workarounds. Not pulling fonts-droid-fallback was
mentioned above. Or this change would probably do it:

--- /usr/share/fontconfig/conf.avail/70-fonts-noto-cjk.conf.orig
+++ /usr/share/fontconfig/conf.avail/70-fonts-noto-cjk.conf
@@ -68,7 +68,7 @@
         <test name="family">
             <string>sans-serif</string>
         </test>
-        <edit name="family" mode="prepend">
+        <edit name="family" mode="prepend" binding="strong">
             <string>Noto Sans CJK JP</string>
         </edit>
     </match>

Or maybe do the equivalent in language-selector-common instead, to not
add an Ubuntu delta to fonts-noto-cjk.

But I don't know how to test these things for snaps (read-only).
@Sebastien: Is there an easy way?

(It was much better when the snaps honored the system's
/etc/fonts/conf.d .)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to language-selector in Ubuntu.
https://bugs.launchpad.net/bugs/2025651

Title:
  default Japanese font in snap apps is ugly

Status in Snappy:
  New
Status in language-selector package in Ubuntu:
  New

Bug description:
  Japanese fonts in snap packages such as Firefox use glyphs from
  Chinese fonts. non-snap packages are fine.

  This is derived from the following ticket:
  https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/2017076

  How to reproduce:

  1. Install lunar or mantic with Japanese language pack
  2. Enable Japanese locale
  3. Start Firefox
  4. Type or Copy "刃" to address field and type enter
  5. Check glyph of "刃"

  Expected result:
  The following Japanese glyph is displayed:
  https://glyphwiki.org/wiki/u5203

  Actual result:
  The following Chinese? glyph is displayed:
  https://glyphwiki.org/wiki/zihai-018904

  Others:

  * Ubuntu 22.04 LTS not affected, works fine.
  * Fixed if you remove fonts-droid-fallback package.

To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/2025651/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to