[Bug 2025651] Re: default Japanese font in snap apps is ugly

Gunnar Hjalmarsson 2025651 at bugs.launchpad.net
Mon Jul 3 20:44:16 UTC 2023


It struck me that fontconfig prefers Noto Sans by default in lunar and
mantic, but not in the snaps if I understand it correctly since the
fonts related packages are grabbed from jammy.

As a test I made this change in mantic:

--- /usr/share/fontconfig/conf.avail/60-latin.conf.orig
+++ /usr/share/fontconfig/conf.avail/60-latin.conf
@@ -18,7 +18,7 @@
 	<alias>
 		<family>sans-serif</family>
 		<prefer>
-			<family>Noto Sans</family>
+<!--			<family>Noto Sans</family> -->
 			<family>DejaVu Sans</family>
 			<family>Verdana</family>
 			<family>Arial</family>

But I still can't reproduce the issue on the host system:

$ LC_CTYPE=ja_JP.UTF-8 fc-match -s sans-serif | grep -E 'Noto|Droid' | head -3
NotoSansCJK-Regular.ttc: "Noto Sans CJK JP" "Regular"
NotoSansSinhala-Regular.ttf: "Noto Sans Sinhala" "Regular"
DroidSansFallbackFull.ttf: "Droid Sans Fallback" "Regular"

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, 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




More information about the foundations-bugs mailing list