on macOS 10.10, zero-width spaces in the system font rendered with Harfbuzz using system kerning have non-zero width |
|||
Issue descriptionChrome Version : 65.0.3311.0 OS Version: OS X 10.10 And on other macOSes they maybe have a tiny negative space still? One way this seems to manifest is as follows: The string below is an x followed by a zero-width space: "x" Copy it into a <textarea>, put the cursor to the LEFT of the x and press the right arrow once so the cursor is between the x and the zero-width space. Then, press shift+right. Expected: Nothing should get selected (since it's the zero-width space). Actual: The x gets selected. This happens with system fonts (monospace, courier, BlinkMacSystemFont). But not with non-system fonts (e.g. "courier new", arial). Tested 10.9, 10.10, 10.12 with 65.0.3309.0 or 65.0.3311.0 and they all do this. 63.0.3239.84 also does this, so this doesn't seem to be a recent regression. The issue that's more apparent will manifest once http://crrev.com/c/851293 lands, but only on 10.10. Repro: open the (toolkit-views) bookmark bubble and paste '"x"' into the Name field. That's an x followed by a bunch of zero-width spaces. Expected: The closing quote should come right after the 'x' Actual: There's a big gap - see attached Since this is really corner-casey, and 10.10 won't be around much longer, fixing this doesn't seem high priority.
,
Jan 8 2018
Does Safari do the same? Sounds like a bug in how CoreText applies the 'trak' table.
,
Jan 9 2018
Safari works correctly for the default font on textarea.org (Bitstream Vera Sans Mono?). But it gets more bizarre when the default user agent stylesheet font is used, or explicitly "-apple-system;", or arial.. It seems to merge all the zero-width spaces into a ~ligature of sorts, and makes cursor positions all across the glyph that preceeds the zero-width spaces. E.g. with just one zero width space, cursoring over the 'x' only goes half way (highlighting the zero-width space highlights the second half of the 'x')
,
Jan 9 2018
We simply return what CoreText returns. Can someone reproduce this using hb-shape? Perhaps I need to implement --font-ptem first.
,
Mar 26 2018
MacViews triage: M-X. This is a super corner case in 10.10 only.
,
Jul 12
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Jan 8 2018