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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1468027 Title: change default CJK fonts to Noto CJK To manage notifications about this bug go to: https://bugs.launchpad.net/fontconfig/+bug/1468027/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
