[Webkit-unassigned] [Bug 200369] New: Slanted text in variable fonts is not rendered correctly if font-style descriptor defines an upper angle that is less than 20deg

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 1 16:46:46 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=200369

            Bug ID: 200369
           Summary: Slanted text in variable fonts is not rendered
                    correctly if font-style descriptor defines an upper
                    angle that is less than 20deg
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sime.vidas at gmail.com

Steps to reproduce:

1. Open https://jsbin.com/dabetaq/edit?css,output

Expected results:

All three boxes should have the same, correct text slant.

Actual results:

In Safari, the slant is incorrect for the second and third box.

Explanation:

It appears that font-style: oblique only renders the correct slant if the upper angle in the font-style descriptor is at least 20deg in Safari. But the variable font has a 'slnt' axis range of 0 to 10*, which translates to the CSS range 0dge 10deg.

*You can check the font file’s 'slnt' range on wakamaifondue.com.

If you change this range to 0deg 20deg, Safari renders the slant correctly. Safari should let authors specify the variable font’s actual slant range. Currently, authors have to use 20deg as some sort of magic number to get correct rendering in Safari.

Note: I’m not an expert on variable fonts, but the range 0deg 10deg works in Chrome and Safari, so this seems to be a bug in Safari.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190801/a790c5ea/attachment.html>


More information about the webkit-unassigned mailing list