diff options
author | Gilles Debunne <debunne@google.com> | 2011-02-03 14:17:05 -0800 |
---|---|---|
committer | Gilles Debunne <debunne@google.com> | 2011-02-18 16:05:15 -0800 |
commit | f3fa0cdbaea109b114f7facbb5d42de3fc12bbc8 (patch) | |
tree | f77a3e54bb69fb71a230da03e536f305e1884f43 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | e7c943926db892d479ba4a0a9b9b314db8abaaee (diff) |
Bugfixes in StaticLayout.
Bug 3422121
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: Ibee410bd7db453abf93e10e8beb844eae998922c
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions