summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2015-11-30 21:05:46 -0800
committerRaph Levien <raph@google.com>2016-01-11 21:43:24 +0000
commit909c7bca570b6f50650d0872e2037389b29252e3 (patch)
treefd5cb60a11745eb78deca124d5236e166afd8543 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd3b2826a1a3ff128db1e89a081124192ac70c509 (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