• R
    Allow clusters to start with zero-width characters · 3e0fc64d
    Raph Levien 提交于
    The logic in getRunAdvance() assumed that any zero-width character was
    part of the preceding cluster, which is valid most of the time. However,
    characters such as ZWNBSP (U+FEFF) renders as a zero width glyph
    and is also a grapheme cluster boundary. This patch adds a clause to
    handle that case.
    
    Bug: 22121742
    Change-Id: Iad79a7d988bded1ef05f0fd7905d20669ea22051
    3e0fc64d
Measurement.cpp 4.4 KB