summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2015-07-20 16:22:01 -0700
committerRaph Levien <raph@google.com>2015-07-20 16:22:01 -0700
commitea2b4a40f7236172398ebcaa273612e00340d847 (patch)
tree895aaaed72e60f5e61a78023a8d1fb4e838ab63b /rs/java/android/renderscript/RenderScript.java
parent29cf9aea5490c42b85aaaa98b6784daff82629f8 (diff)
Respect style boundaries when measuring text
The existing implementation of handleText() in TextLine laid out text to the end of the context. However, in cases where the text is broken into multiple style spans, it's only valid to lay out up to the end of the style span. This can lead to inconsistent measurements, especially in the presence of legitimate zero-width characters such as bidi control characters and zero width space. This patch changes the invocation of getRunAdvance to measure only within the style span. Bug: 22589743 Change-Id: I027f5e77db27ddf9596ef20adcad7e62a82b41de
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions