Created attachment 175789 [details] x11-fonts.webfonts.patch Sync fonts collection with mscorefonts2[1]. This includes: 1. Update Arial, Times, Trebuchet and Verdana fonts to y2006 version 2. Include cleartype fonts: Calibri, Cambria, Consolas, Constantia and Corbel [1] http://mscorefonts2.sourceforge.net/
Comment on attachment 175789 [details] x11-fonts.webfonts.patch Thank you for your contribution. Please remember to set the maintainer-approval(?) request flag on attachments for ports you're not maintainer of (under attachment Details), with the maintainer's e-mail address.
Also please confirm the changes pass QA (portlint, poudriere).
Created attachment 175793 [details] poudriere build log
A commit references this bug: Author: olgeni Date: Mon Oct 17 14:53:21 UTC 2016 New revision: 424121 URL: https://svnweb.freebsd.org/changeset/ports/424121 Log: Sync webfonts collection with mscorefonts2. - Update Arial, Times, Trebuchet and Verdana fonts to y2006 version. - Include ClearType fonts: Calibri, Cambria, Consolas, Constantia, Corbel. Add LICENSE information while I'm here. PR: 213512 Submitted by: Vladimir Kondratyev Changes: head/x11-fonts/webfonts/Makefile head/x11-fonts/webfonts/distinfo head/x11-fonts/webfonts/pkg-descr head/x11-fonts/webfonts/pkg-plist
Patch committed with a few minor changes (license+pkg-descr). Thank you!
Some fonts appear strange in Firefox after this upgrade. Before: http://ftfl.ca/misc/before_webfonts_upgrade.png After: http://ftfl.ca/misc/after_webfonts_upgrade.png Note the strange 'N' in, e.g., "News and Announcements". ~/.fonts.conf: http://ftfl.ca/paste/.fonts.conf.html
(In reply to Joseph Mingrone from comment #6) This is known problem with Verdana Bold Try fontconfig hints from following link: https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/109734
Thanks for pointing that out. I think the occasional weird letter is a lesser evil than disabling antialiasing for Verdana. The fonts rendered correctly before. Do you know what changed in this update to trigger the regression?
A reasonable workaround for anyone else having this problem is to replace verdana with a similar sans-serif font by adding something like this to ~/fonts.conf. <!-- replace verdana due to bug: --> <!-- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213512 --> <match target="pattern"> <test name="family" qual="any"><string>verdana</string></test> <edit name="family" mode="assign"><string>dejavu sans</string></edit> </match>
Sorry, that should have been ~/.fonts.conf instead of ~/fonts.cont.
Created attachment 175930 [details] verdana-version-knob.patch I added Makefile knob to chose version (2.35 or 5.01) of Verdana font to install Old version is default
A commit references this bug: Author: olgeni Date: Wed Oct 19 09:04:41 UTC 2016 New revision: 424233 URL: https://svnweb.freebsd.org/changeset/ports/424233 Log: Provide a NEWVERDANA option (off by default) to install the y2006 version of Verdana. Some glyphs of Verdana Bold y2006 are not rendered correctly by freetype in anti-aliased mode. PR: 213512 Submitted by: Vladimir Kondratyev Changes: head/x11-fonts/webfonts/Makefile head/x11-fonts/webfonts/distinfo head/x11-fonts/webfonts/files/pkg-message.in
(In reply to Vladimir Kondratyev from comment #11) Nice work! Thanks!
(In reply to commit-hook from comment #12) (In reply to Jimmy Olgeni from comment #13) Even better. Thank you.