/space glyph gets ignored in OpenType code
Reported by
eima...@gmail.com,
Aug 23 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36 Steps to reproduce the problem: 1. Go to http://www.impallari.com/testing/index-latin-02.php and select "Kern Words" 2. Load up the attached font. 3. Do same thing in Safari and compare results What is the expected behavior? Words should start with a capital letter from one of 3 stylistic sets What went wrong? Instead all words start with letters from the first set. Did this work before? No Chrome version: 60.0.3112.101 Channel: stable OS Version: OS X 10.12.5 Flash Version: The font has 3 stylistic sets for #calt feature. The code is written so that /space does not interrupt rotation between alternates. The problem is that apparently before processing code, Chrome turns all spaces (U+0020) into /nbspace (U+00A0). Found this out by pasting spaces into a unicode checker. This means that any OT code line containing /space gets ignored. I tried adding /nbspace glyph to the font and the code but it did not work.
,
Aug 24 2017
Checked – issue persists on canary #62.0.3194.0 too. In the attached file I circled the letters from different stylistic sets so it's easier to see. Also notice the /d in "cod". The OT code for substitution is: sub d' space by d_old; It works in Safari but because Chrome does not recognize /space, the line (and substitution) gets ignored.
,
Aug 24 2017
Thank you for providing more feedback. Adding requester "krajshree@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 29 2017
Thanks for the report. Chrome currently segments text on space by default for performance reasons. Adding "text-rendering: optimizeLegibility;" disables that and us render the text as expected. We're currently in the process of changing our line layout implementation and that work will fix this without the need for any extra css properties. Until then though hopefully the workaround suggested above is sufficient for your use case. Thanks. |
|||
►
Sign in to add a comment |
|||
Comment 1 by krajshree@chromium.org
, Aug 24 2017Components: Internals>Skia Blink>Fonts
Labels: Needs-Triage-M60 Needs-Feedback
21.1 MB
21.1 MB Download
623 KB
623 KB View Download
564 KB
564 KB View Download