RESOLVED FIXED275892
[Win] incorrect font metrics of Google Sans font
https://bugs.webkit.org/show_bug.cgi?id=275892
Summary [Win] incorrect font metrics of Google Sans font
Fujii Hironori
Reported 2024-06-26 00:26:49 PDT
Created attachment 471747 [details] test case Windows WebKit renders Google Sans font differently than other browsers. https://news.google.com/home?hl=ja&gl=JP&ceid=JP:ja
Attachments
test case (391 bytes, text/html)
2024-06-26 00:26 PDT, Fujii Hironori
no flags
screenshots (133.48 KB, image/png)
2024-06-27 23:21 PDT, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2024-06-27 20:48:02 PDT
Fujii Hironori
Comment 2 2024-06-27 23:21:41 PDT
Created attachment 471761 [details] screenshots
Fujii Hironori
Comment 3 2024-06-27 23:50:56 PDT
Downloaded woff2 file and dumpped the font with fonttools. https://fonts.gstatic.com/s/googlesans/v59/4UasrENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RPjIUvQ.woff2 https://github.com/fonttools/fonttools Here is the oly hhea and OS_2 tables. <hhea> <tableVersion value="0x00010000"/> <ascent value="966"/> <descent value="-286"/> <lineGap value="0"/> <advanceWidthMax value="3284"/> <minLeftSideBearing value="-173"/> <minRightSideBearing value="-365"/> <xMaxExtent value="3284"/> <caretSlopeRise value="1"/> <caretSlopeRun value="0"/> <caretOffset value="0"/> <reserved0 value="0"/> <reserved1 value="0"/> <reserved2 value="0"/> <reserved3 value="0"/> <metricDataFormat value="0"/> <numberOfHMetrics value="491"/> </hhea> <OS_2> <!-- The fields 'usFirstCharIndex' and 'usLastCharIndex' will be recalculated by the compiler --> <version value="4"/> <xAvgCharWidth value="494"/> <usWeightClass value="400"/> <usWidthClass value="5"/> <fsType value="00000000 00000000"/> <ySubscriptXSize value="650"/> <ySubscriptYSize value="600"/> <ySubscriptXOffset value="0"/> <ySubscriptYOffset value="75"/> <ySuperscriptXSize value="650"/> <ySuperscriptYSize value="600"/> <ySuperscriptXOffset value="0"/> <ySuperscriptYOffset value="350"/> <yStrikeoutSize value="84"/> <yStrikeoutPosition value="306"/> <sFamilyClass value="0"/> <panose> <bFamilyType value="0"/> <bSerifStyle value="0"/> <bWeight value="0"/> <bProportion value="0"/> <bContrast value="0"/> <bStrokeVariation value="0"/> <bArmStyle value="0"/> <bLetterForm value="0"/> <bMidline value="0"/> <bXHeight value="0"/> </panose> <ulUnicodeRange1 value="10000000 00000000 00000000 01100111"/> <ulUnicodeRange2 value="00000000 00000000 00000000 01101011"/> <ulUnicodeRange3 value="00000000 00000000 00000000 00101000"/> <ulUnicodeRange4 value="00000000 00000000 00000000 00000000"/> <achVendID value="GOOG"/> <fsSelection value="00000000 11000000"/> <usFirstCharIndex value="13"/> <usLastCharIndex value="65533"/> <sTypoAscender value="966"/> <sTypoDescender value="-286"/> <sTypoLineGap value="0"/> <usWinAscent value="1323"/> <usWinDescent value="1079"/> <ulCodePageRange1 value="00100000 00000001 00000001 10111111"/> <ulCodePageRange2 value="00000000 00000000 00000000 00000000"/> <sxHeight value="510"/> <sCapHeight value="716"/> <usDefaultChar value="0"/> <usBreakChar value="32"/> <usMaxContext value="18"/> </OS_2> hhea and typo has same ascent, descent and lineGap. But, big winAscent nd winDescent. fsSelection has 0x80 bit (USE_TYPO_METRICS).
EWS
Comment 4 2024-06-28 14:55:27 PDT
Committed 280480@main (0df29c6b290b): <https://commits.webkit.org/280480@main> Reviewed commits have been landed. Closing PR #30257 and removing active labels.
Radar WebKit Bug Importer
Comment 5 2024-06-28 14:56:15 PDT
Note You need to log in before you can comment on or make changes to this bug.