[Webkit-unassigned] [Bug 163546] New: CSS font-variation-settings does not handle uppercase axis names in variable fonts
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 17 09:20:58 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=163546
Bug ID: 163546
Summary: CSS font-variation-settings does not handle uppercase
axis names in variable fonts
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Macintosh
OS: macOS 10.12
Status: NEW
Severity: Normal
Priority: P2
Component: Text
Assignee: webkit-unassigned at lists.webkit.org
Reporter: lorp at lorp.org
CC: mmaxfield at apple.com
When using CSS to set axis positions in variable fonts, only lowercase axis names function correctly.
Although the spec advises that both uppercase and lowercase axis names are allowed, and that there is no equivalence between uppercase and lowercase axes, in practice axes with uppercase names are ignored. Inspecting the DOM reveals that upper-to-lowercase conversion is applied to font-variation-settings as the value enters the DOM.
Two problematic fonts are BuffaloGalRegular.ttf (axes: CK,FR,HV,CN,BR,TC) and ZyconRegular.ttf (axes: T1,T2,T3,T4,M1,M2). These do not work in Webkit Nightly. A DOM inspection reveals the styles are case converted. For example:
style="font-variation-settings: 'CK ' 0, 'FR ' -0.298, 'HV ' -0.06, 'CN ' 0, 'BR ' 0, 'TC ' 0;"
â¦Â becomes â¦
style="font-variation-settings: 'ck ' 0, 'fr ' -0.298, 'hv ' -0.06, 'cn ' 0, 'br ' 0, 'tc ' 0;"
After this conversion, the axis names no longer match those in the font, and the axes do not function.
(Note also the replacement of two spaces by one, but that seems not to be a problem.)
Both BuffaloGalRegular.ttf and ZyconRegular.ttf function correctly after converting tag names to lowercase using TTX.
Spec: https://www.microsoft.com/typography/otspec/fvar.htm
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161017/90943d64/attachment.html>
More information about the webkit-unassigned
mailing list