commit | 6141db3846356efbdea093756701c89bd5155421 | [log] [tgz] |
---|---|---|
author | Raph Levien <raph@google.com> | Mon Jul 11 13:59:58 2016 -0700 |
committer | Raph Levien <raph@google.com> | Tue Jul 12 16:09:35 2016 +0000 |
tree | 2edb411f7cbbdf7e53e0419e66160d8d744c9299 | |
parent | 807cf8699a16085ffc9c060420b8d2175283be10 [diff] |
Don't count zero width space in hasGlyph layout For sequences that may form ligatures (ie not just a a base character plus variation selector pair), hasGlyph requests a layout and then counts the glyph. In some cases, when the source string contains a variation selector, the layout contains space glyphs with no associated width, which causes a "false" result. This patch filters out such zero width spaces. Bug: 30056285 Change-Id: I9b5db4aa5ad24bf43e237c98b610fd269f2b91c9