diff options
author | Raph Levien <raph@google.com> | 2015-11-30 21:05:46 -0800 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2016-01-11 21:43:24 +0000 |
commit | 909c7bca570b6f50650d0872e2037389b29252e3 (patch) | |
tree | fd5cb60a11745eb78deca124d5236e166afd8543 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | d3b2826a1a3ff128db1e89a081124192ac70c509 (diff) |
Fix measurement to respect grapheme and span boundaries
When measuring in TextLine (important for cursor positioning), the
substring measured must neither be too short (it can't just be the
substring up to the measure limit, but must include additional
characters if they form a ligature) nor too long (it can't extend
beyond the end of the CharacterStyle span, otherwise the measurement
fails to account for the fact that the CharacterStyle span boundary
breaks the ligature). This patch gets it just right.
Bug: 25375561
Change-Id: I36e1c4bdc66424d3b611cf54031756cf54cf3fec
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions