CSS Styling changes OpenType substitution
Reported by
signalw...@googlemail.com,
Oct 19
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 Steps to reproduce the problem: If CSS `p::first-letter` applies to a string where the first letter should get replaced with the ligature feature of the font the replacement is not happening. Detailed description, comparisons an and code: https://signalwerk.github.io/css-opentype-substitution/ What is the expected behavior? What went wrong? The first letter gets not replaced. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 69.0.3497.100 Channel: stable OS Version: OS X 10.14.0 Flash Version:
,
Oct 19
Sorry if my description is not all that simple. I try it in other words: We have: <p>AB</p> The font has a substitution (inside the liga feature of the font): `sub A' B by emdash;` Notation: [OpenType Feature File Specification](https://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html) The renderer therefore shows: <p>—B</p> Now we apply with CSS a formatting to the first letter. Instead of <p>—B</p> the renderer shows: <p>AB</p> My URL shows a very reduced example and is taken from a real world example but made with a reduced custom font that shows only this problem.
,
Oct 19
I reworked the explanations and the example-font: https://signalwerk.github.io/css-opentype-substitution/
,
Oct 21
Thanks for the detailed report and example.
,
Oct 22
|
|||
►
Sign in to add a comment |
|||
Comment 1 by ellyjo...@chromium.org
, Oct 19Status: Untriaged (was: Unconfirmed)