Launchpad has imported 1 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=94505.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2016-03-11T23:17:36+00:00 Mingye Wang wrote:

Many True/OpenType fonts, like Noto Sans CJK ("notocjk") in this
example, uses a pattern in "name" table where:

* name.fontFamily gives the full name (with style) of the font and Subfamily is 
always Regular
* name.preferredFamily gives the actual family name and Subfamily is the actual 
weight

Fontconfig doesn't seem to be capable of handling such a case.
Specifically, given a config file which <prefer>s notocjk:

        <alias>
                <family>sans-serif</family>
                <prefer>
                        <family>Noto Sans CJK SC</family>
                        <family>Noto Sans CJK TC</family>
                </prefer>
        </alias>

Fontconfig will produce a match like:

$ fc-match --verbose
Pattern has 38 elts (size 48)
        family: "Noto Sans CJK SC"(s) "Noto Sans CJK SC DemiLight"(s)
        familylang: "en"(s) "en"(s)
        style: "DemiLight"(w) "Regular"(w)
        stylelang: "en"(w) "en"(w)
        fullname: "Noto Sans CJK SC DemiLight"(w)
        fullnamelang: "en"(w)
        [...]

Now here is the problem. By preferring the preferredFamily "Noto Sans
CJK SC", fontconfig ended up also preferring "Noto Sans CJK SC
DemiLight", and matched "Noto Sans CJK SC DemiLight" "Regular" for the
implicit "Regular".

See https://bugs.launchpad.net/ubuntu/+source/language-
selector/+bug/1468027 for a context of this problem.

Reply at: https://bugs.launchpad.net/ubuntu/+source/language-
selector/+bug/1468027/comments/44


** Changed in: fontconfig
       Status: Unknown => Confirmed

** Changed in: fontconfig
   Importance: Unknown => Medium

-- 
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/1468027

Title:
  change default CJK fonts to Noto CJK

Status in Fontconfig:
  Confirmed
Status in fonts-noto-cjk package in Ubuntu:
  In Progress
Status in language-selector package in Ubuntu:
  Fix Released
Status in ubuntu-meta package in Ubuntu:
  In Progress

Bug description:
  just realize that fonts-noto-cjk is available in the repository, finally its 
packaged.
  i don't really know about korean community.
  But for Chinese and Japanese community, i think that the answer is clear.
  noto-cjk is definitely better what we had before, like fonts- wqy and 
fonts-droid.
  Android community had received these complains for years, finally they got 
them fixed on lollipop.
  Fedora also set it as default chinese font start from F21.
  and of course, i still hope that ubuntu could drop those 69-language-selector 
fontconfig files, just like what F13 did.

To manage notifications about this bug go to:
https://bugs.launchpad.net/fontconfig/+bug/1468027/+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