fune/modules
Jonathan Kew 4170df881e Bug 1871009 - Improve mapping of the CoreText font-weight trait to values for the CSS font-weight property. r=layout-reviewers,emilio
Checking the fonts in HelveticaNeue.ttc on macOS Sonoma, both HelveticaNeue-Medium and -MediumItalic have the same weight (500) in their OS/2 table, and return the same value (0.23) for their kCTFontWeightTrait. Back in bug 931426 when the weight override pref was added, we were getting different weights from appKit for these two "Medium" faces, but that no longer appears to be an issue.

This patch makes our CoreTextWeightToCSSWeight mapping a bit more sophisticated, with the added data point of CSS/OpenType weight 500 = CoreText weight 0.23, which we're seeing here in HelveticaNeue. With this refinement in the mapping, we can drop the old override for the HelveticaNeue-MediumItalic face.

Differential Revision: https://phabricator.services.mozilla.com/D197665
2024-01-04 15:46:47 +00:00
..
brotli
fdlibm
freetype2
libjar Bug 1867315 - Check ENDSIG for ZIP64 too r=necko-reviewers,valentin 2023-12-01 12:00:06 +00:00
libmar Bug 1862505 - Removed unnecessary else statement. r=sylvestre 2023-11-29 18:12:55 +00:00
libpref Bug 1871009 - Improve mapping of the CoreText font-weight trait to values for the CSS font-weight property. r=layout-reviewers,emilio 2024-01-04 15:46:47 +00:00
woff2
xz-embedded Bug 1867459 - Replace CPU_ARCH with TARGET_CPU. r=firefox-build-system-reviewers,sergesanspaille 2023-12-08 10:43:59 +00:00
zlib
moz.build