summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2011-02-03 14:17:05 -0800
committerSriram Raman <sriramkraman@google.com>2011-03-01 22:39:28 -0500
commit6a4a1d7488e61c3aacdd37f2f95139168a283aef (patch)
treefa218b74dcc7e8e7ec694802d9d936050c666817 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent566bf98a82079ca678b03f459950b9892f6b2096 (diff)
Bugfixes in StaticLayout. DO NOT MERGE.
Bug 3422121 Cherry-picked from master's 95472. With ellipsize, lines starting with a very long word that does not fit inside the width were simply ignored. Cut the long word instead. start - widthStart index offset shift in BiDi. The original ellipsize-end patch that added '...' after the last word on end-ellipsized lines has been punted in favor of a true ellipsize support in I. I believe the StaticLayout calculateEllipsise is a no-op since textwidth <= avail by construction: fitWidth and okwidth are < outerWidth. The only exception is the paraEnd != here case in generate (when not a single character fits in width). This case is exercised by StaticLayoutTest in cts (width of 8 pixels) and revealed an offset error in widstart. All in all, it looks like this code was probably never really tested. I tried some typical text configuration to make sure these changes improved the situation. Change-Id: I6c2cb26436a21f0f89078c275a89e891f0f23b92
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions