| Summary: | Some font doesn't render with font-variant-ligatures: none; | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Xidorn Quan <xidorn-webkit> | ||||
| Component: | Text | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED DUPLICATE | ||||||
| Severity: | Normal | CC: | mmaxfield, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
paintInfo.rect.intersects(snappedIntRect(overflowRect)) is returning false in LegacyInlineFlowBox::paint() The LegacyRootInlineBox has 0 height CTFontGetAscent() and CTFontGetDescent() are returning 0. This is a bug in Core Text. The font has a broken 'hhea' table, it has zero values for ascender, descender, and lineGap. |
Created attachment 435665 [details] font with problem Steps to reproduce: 1. download the attached font file 2. create an HTML with the following code in the same directory and open it <!DOCTYPE html> <html> <style> @font-face { font-family: "A"; src: url(GilSBI30.woff); } p { font: 90px/1 A; font-variant-ligatures: none; } </style> <p><span>Hello world</span></p> <p>Hello world</p> Expected result: It should render the text properly Actual result: The text is not rendered It seems that the font has a bad font metrics with CoreText. In Safari 14, the first line wouldn't display even without `font-variant-ligatures: none;`, but this issue is fixed in the Technology Preview.