> I am concerned that it only affects the snap package, while
> the non-snap package seems to select the correct glyphs.

Yes, that's what it looks like.

$ lsb_release -c
No LSB modules are available.
Codename:       mantic
$ dpkg-query -W fonts-droid-fallback
fonts-droid-fallback    1:6.0.1r16-1.1build1
$ snap run --shell firefox
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

/home/gunnar$ LC_CTYPE=ja_JP.UTF-8 fc-match sans-serif
DroidSansFallbackFull.ttf: "Droid Sans Fallback" "Regular"
/home/gunnar$ exit
exit
$ LC_CTYPE=ja_JP.UTF-8 fc-match sans-serif
NotoSansCJK-Regular.ttc: "Noto Sans CJK JP" "Regular"

So the font configuration of the snaps prioritizes differently compared
to the font configuration of the system. Reason unclear to me ATM.

I also checked in Debian testing, where Firefox is conventionally
packaged. Starting FF there with the Japanese locale results in the
default sans-serif font "VL Gothic". But that's what's expected from the
system font configuration:

$ LC_CTYPE=ja_JP.UTF-8 fc-match sans-serif
VL-Gothic-Regular.ttf: "VL ゴシック" "regular"

(Debian with GNOME has a lot of fonts installed.)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to fontconfig in Ubuntu.
https://bugs.launchpad.net/bugs/2017076

Title:
  default Chinese font in snap apps is ugly

Status in Snappy:
  Fix Released
Status in fontconfig package in Ubuntu:
  Invalid
Status in language-selector package in Ubuntu:
  Invalid

Bug description:
  After installs Ubuntu 23.04 with Chinese language selected, the
  default font is chosen to AR PL UMing CN, which is very ugly.

  ProblemType: Bug
  DistroRelease: Ubuntu 23.04
  Package: fontconfig 2.14.1-3ubuntu3
  ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
  Uname: Linux 6.2.0-20-generic x86_64
  ApportVersion: 2.26.1-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: pass
  CloudArchitecture: x86_64
  CloudID: none
  CloudName: none
  CloudPlatform: none
  CloudSubPlatform: config
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Apr 20 14:18:45 2023
  InstallationDate: Installed on 2023-04-20 (0 days ago)
  InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
  ProcEnviron:
   LANG=zh_CN.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: fontconfig
  UpgradeStatus: No upgrade log present (probably fresh install)

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


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

Reply via email to