[Desktop-packages] [Bug 1556457] Re: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig
** Description changed: + [FFe request comment] + + Upgrading to fontconfig 2.11.94 is proposed as a fix of this bug, + including a fix of certain font weight issues due to the switch from + fonts-droid to fonts-noto-cjk for Chinese (discussed at bug #1468027) + where we haven't found any way to work around the problem. + + The proposed upload is available in this PPA: + https://launchpad.net/~gunnarhj/+archive/ubuntu/fontconfig-test2 + + [Original description including updates] + See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. Archlinux: https://bugs.archlinux.org/task/48550 (fix released, upgraded to 2.11.94) ** Summary changed: - [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig + [FFe] Demilight (OS/2 weight=350) confuses fontconfig -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to fontconfig in Ubuntu. https://bugs.launchpad.net/bugs/1556457 Title: [FFe] Demilight (OS/2 weight=350) confuses fontconfig Status in Fontconfig: Fix Released Status in fontconfig package in Ubuntu: New Status in fontconfig package in Arch Linux: New Bug description: [FFe request comment] Upgrading to fontconfig 2.11.94 is proposed as a fix of this bug, including a fix of certain font weight issues due to the switch from fonts-droid to fonts-noto-cjk for Chinese (discussed at bug #1468027) where we haven't found any way to work around the problem. The proposed upload is available in this PPA: https://launchpad.net/~gunnarhj/+archive/ubuntu/fontconfig-test2 [Original description including updates] See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. Archlinux: https://bugs.archlinux.org/task/48550 (fix released, upgraded to 2.11.94) To manage notifications about this bug go to: https://bugs.launchpad.net/fontconfig/+bug/1556457/+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
[Desktop-packages] [Bug 1556457] Re: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig
** Bug watch removed: GNOME Bug Tracker #733764 https://bugzilla.gnome.org/show_bug.cgi?id=733764 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to fontconfig in Ubuntu. https://bugs.launchpad.net/bugs/1556457 Title: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig Status in Fontconfig: Fix Released Status in fontconfig package in Ubuntu: New Status in fontconfig package in Arch Linux: New Bug description: See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. Archlinux: https://bugs.archlinux.org/task/48550 (fix released, upgraded to 2.11.94) To manage notifications about this bug go to: https://bugs.launchpad.net/fontconfig/+bug/1556457/+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
[Desktop-packages] [Bug 1556457] Re: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig
Thanks for your attempt to fix it. Haven't tried the new patch yet, but before I saw it, I created a new PPA for trying the Arch Linux way: A possible upgrade to fc 2.11.94: https://launchpad.net/~gunnarhj/+archive/ubuntu/fontconfig-test2 Much better result. :) (The below is without the influence of the language-selector .conf files.) $ fc-match -V fontconfig version 2.11.1 $ fc-match -a | grep 'Noto Sans CJK SC' NotoSansCJK.ttc: "Noto Sans CJK SC" "DemiLight" NotoSansCJK.ttc: "Noto Sans CJK SC" "Regular" NotoSansCJK.ttc: "Noto Sans CJK SC" "Medium" NotoSansCJK.ttc: "Noto Sans CJK SC" "Thin" NotoSansCJK.ttc: "Noto Sans CJK SC" "Light" NotoSansCJK.ttc: "Noto Sans CJK SC" "Bold" NotoSansCJK.ttc: "Noto Sans CJK SC" "Black" $ fc-match -V fontconfig version 2.11.94 $ fc-match -a | grep 'Noto Sans CJK SC' NotoSansCJK.ttc: "Noto Sans CJK SC" "Regular" NotoSansCJK.ttc: "Noto Sans CJK SC" "Medium" NotoSansCJK.ttc: "Noto Sans CJK SC" "DemiLight" NotoSansCJK.ttc: "Noto Sans CJK SC" "Light" NotoSansCJK.ttc: "Noto Sans CJK SC" "Thin" NotoSansCJK.ttc: "Noto Sans CJK SC" "Bold" NotoSansCJK.ttc: "Noto Sans CJK SC" "Black" I can't tell if it would be possible to have this accepted for 16.04. It would be very interesting to know if fc 2.11.94 also fixes the Firefox issue, which has been reported at bug #1468027 (see my latest comment there). -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to fontconfig in Ubuntu. https://bugs.launchpad.net/bugs/1556457 Title: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig Status in Fontconfig: Fix Released Status in fontconfig package in Ubuntu: New Status in fontconfig package in Arch Linux: New Bug description: See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. Archlinux: https://bugs.archlinux.org/task/48550 (fix released) To manage notifications about this bug go to: https://bugs.launchpad.net/fontconfig/+bug/1556457/+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
[Desktop-packages] [Bug 1556457] Re: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig
Hi Mingye, I tried to build fontconfig in a PPA with your patch. The patch applies, but unfortunately the build failed. "error: could not locate FcRangeCreateDouble in src/*.c" https://launchpad.net/~gunnarhj/+archive/ubuntu/fontconfig- test/+packages -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to fontconfig in Ubuntu. https://bugs.launchpad.net/bugs/1556457 Title: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig Status in Fontconfig: Fix Released Status in fontconfig package in Ubuntu: New Status in fontconfig package in Arch Linux: New Bug description: See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. Archlinux: https://bugs.archlinux.org/task/48550 (fix released) To manage notifications about this bug go to: https://bugs.launchpad.net/fontconfig/+bug/1556457/+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
[Desktop-packages] [Bug 1556457] Re: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig
** Description changed: See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. - Archlinux: https://bugs.archlinux.org/task/48550 + Archlinux: https://bugs.archlinux.org/task/48550 (fix released) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to fontconfig in Ubuntu. https://bugs.launchpad.net/bugs/1556457 Title: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig Status in Fontconfig: Fix Released Status in fontconfig package in Ubuntu: New Status in fontconfig package in Arch Linux: New Bug description: See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. Archlinux: https://bugs.archlinux.org/task/48550 (fix released) To manage notifications about this bug go to: https://bugs.launchpad.net/fontconfig/+bug/1556457/+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
[Desktop-packages] [Bug 1556457] Re: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig
Launchpad has imported 8 comments from the remote bug at https://bugs.freedesktop.org/show_bug.cgi?id=81453. 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 2014-07-17T05:57:22+00:00 Kanru-d wrote: Recently Adobe & Google released a open-source pan-CJK font, Source Han Sans from Adobe or Noto Sans CJK from Google. This font family features 7 font weights: ExtraLight, Light, Normal, Regular, Meidum, Bold, Heavy and their os2 weight are: 100, 300, 350, 400, 500, 700, 900 respectively. However, in fontconfig, os2 weight class 350 and 400 both maps to weight 80 and I think this makes fontconfig or pango confuse about how to choose the default font. In particular in the GktFontChooser user can't choose one of these fonts. To fix this we probably also have to fix Pango. This issue is also reported to the source-han-sans project: https://github.com/adobe-fonts/source-han-sans/issues/5 Reply at: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1556457/comments/0 On 2014-07-19T20:54:16+00:00 Freedesktop wrote: I believe this is a Pango limitation, not fontconfig. I'll take a look. Reply at: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1556457/comments/1 On 2014-07-25T19:05:18+00:00 Freedesktop wrote: My bad, this *is* a fontconfig issue. Investigating. Reply at: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1556457/comments/2 On 2014-07-25T22:09:03+00:00 Freedesktop wrote: Fontconfig part fixed. Pango fix needed. commit ffda7c0e8130eb107ecbb3bdc48043093b12dff9 Author: Behdad EsfahbodDate: Fri Jul 25 17:59:26 2014 -0400 Linearly interpolate weight values Rest of Part of https://bugs.freedesktop.org/show_bug.cgi?id=81453 Adds new API: FcWeightFromOpenType() FcWeightToOpenType() commit bf9df5ada77469f57101851f6b4e279a4a5ea087 Author: Behdad Esfahbod Date: Fri Jul 25 18:07:10 2014 -0400 Change DemiLight from 65 to 55 Such that Regular is closer to Medium than to DemiLight commit be6506ca04ccce10868a8cd51d89e586284d149b Author: Behdad Esfahbod Date: Fri Jul 25 16:24:26 2014 -0400 Add FC_WEIGHT_DEMILIGHT Part of https://bugs.freedesktop.org/show_bug.cgi?id=81453 Also hooks up FC_WEIGHT_BOOK to fcfreetype.c. Reply at: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1556457/comments/3 On 2014-07-25T22:13:35+00:00 Freedesktop wrote: Tracking pango issue here: https://bugzilla.gnome.org/show_bug.cgi?id=733764 Reply at: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1556457/comments/4 On 2014-07-26T20:42:43+00:00 Freedesktop wrote: Pango fixed. See screenshots here: https://bugzilla.gnome.org/show_bug.cgi?id=733764 Reply at: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1556457/comments/5 On 2014-08-06T07:09:56+00:00 Daphnediane wrote: (In reply to comment #3) > Fontconfig part fixed. Pango fix needed. > > commit ffda7c0e8130eb107ecbb3bdc48043093b12dff9 > Author: Behdad Esfahbod > Date: Fri Jul 25 17:59:26 2014 -0400 > > Linearly interpolate weight values > > Rest of Part of https://bugs.freedesktop.org/show_bug.cgi?id=81453 > > Adds new API: > > FcWeightFromOpenType() > FcWeightToOpenType() Note that this fix introduced bug 82228 as lerp doesn't handle dy == 0. Reply at: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1556457/comments/6 On 2016-03-12T04:44:48+00:00 Freedesktop wrote: *** Bug 94505 has been marked as a duplicate of this bug. *** Reply at: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1556457/comments/7 ** Changed in: fontconfig Status: Unknown => Fix Released ** Changed in: fontconfig Importance: Unknown => Medium ** Bug watch added: GNOME Bug Tracker #733764 https://bugzilla.gnome.org/show_bug.cgi?id=733764 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to fontconfig in Ubuntu. https://bugs.launchpad.net/bugs/1556457 Title: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig Status in Fontconfig: Fix Released Status in fontconfig
[Desktop-packages] [Bug 1556457] Re: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig
Hi again, Mingye! I think that fontconfig .conf files are effective whether the fonts were installed via .deb packages or in some other way, as long as the font files are placed in a directory which fontconfig looks at. With that said, if it's possible to make fontconfig pick the most sensible default font weight without extra configuration, it's indeed a better way. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to fontconfig in Ubuntu. https://bugs.launchpad.net/bugs/1556457 Title: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig Status in Fontconfig: Unknown Status in fontconfig package in Ubuntu: New Status in fontconfig package in Arch Linux: New Bug description: See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. Archlinux: https://bugs.archlinux.org/task/48550 To manage notifications about this bug go to: https://bugs.launchpad.net/fontconfig/+bug/1556457/+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
[Desktop-packages] [Bug 1556457] Re: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig
** Changed in: fontconfig (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to fontconfig in Ubuntu. https://bugs.launchpad.net/bugs/1556457 Title: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig Status in Fontconfig: Unknown Status in fontconfig package in Ubuntu: New Status in fontconfig package in Arch Linux: New Bug description: See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. Archlinux: https://bugs.archlinux.org/task/48550 To manage notifications about this bug go to: https://bugs.launchpad.net/fontconfig/+bug/1556457/+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
[Desktop-packages] [Bug 1556457] Re: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig
** Also affects: fontconfig (Arch Linux) Importance: Undecided Status: New ** Description changed: See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. + + Archlinux: https://bugs.archlinux.org/task/48550 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to fontconfig in Ubuntu. https://bugs.launchpad.net/bugs/1556457 Title: [Resolved Upstream] Demilight (OS/2 weight=350) confuses fontconfig Status in Fontconfig: Unknown Status in fontconfig package in Ubuntu: New Status in fontconfig package in Arch Linux: New Bug description: See https://bugs.freedesktop.org/show_bug.cgi?id=81453 and bug 1468027. Fontconfig lacks support for many OpenType/TrueType OS/2 font weight values. This causes a bunch of problems, like mixing up Demilight (weight=350) and Regular (weight=400). Although it's possible to write (dirty?) hacks for deb-packed fonts, this still causes problems for otherwise sourced fonts. Archlinux: https://bugs.archlinux.org/task/48550 To manage notifications about this bug go to: https://bugs.launchpad.net/fontconfig/+bug/1556457/+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