[Webkit-unassigned] [Bug 254146] New: Can't activate feature with all caps tag via font-feature-settings
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 19 22:56:07 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=254146
Bug ID: 254146
Summary: Can't activate feature with all caps tag via
font-feature-settings
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Text
Assignee: webkit-unassigned at lists.webkit.org
Reporter: elaine at diplograph.net
CC: mmaxfield at apple.com
Created attachment 465513
--> https://bugs.webkit.org/attachment.cgi?id=465513&action=review
Test case
The attached test case contains a version of the Ahem font with two new layout features, `cv01` and `XPOS`, identical except for their tags. The features contain a single rule (in afdko feature syntax):
pos x <500 0 1000 0>;
That is, modify the x glyph by increasing the xPosition by 500 font units and the advance by 1000 font units, effectively adding a half em of space on both sides of the glyph.
In the attached index.html, the two lines of text are identical, except in the first the middle character is wrapped with a span that activates the cv01 feature, and in the second the middle character is wrapped with a span that activates the XPOS feature. The glyph's position is modified only in the first line.
STEPS TO REPRODUCE
Open the index.html in the attached archive.
You do not need to run the Makefile; it and the UFO sources are attached for reference. The features can be found in Ahem-Regular.ufo/features.fea.
EXPECTED RESULTS
The two lines of text are identical.
Observed in STP 165 and Safari 16.3 (18614.4.6.1.6) running on macOS 13.2.1 (22D68). Does not reproduce in Firefox 111 and Chrome 111.
COMMENTARY
I ran into this issue while implementing a feature that modified spacing for some punctuation characters, similar to the "PKRN" example Microsoft gives on https://learn.microsoft.com/en-us/typography/opentype/spec/featuretags.
WORKAROUND
Use one of the stylistic variant tags, like cv01–cv99 or ss01–ss20.
--
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/20230320/55e16d53/attachment.htm>
More information about the webkit-unassigned
mailing list