diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2014-01-07 11:58:44 -0800 |
---|---|---|
committer | Deepanshu Gupta <deepanshu@google.com> | 2014-03-28 14:46:51 -0700 |
commit | 88301948c92fe1261cfa19383d4aaa5d5d0195ac (patch) | |
tree | d73bd49b1b0b14ce3afc8963ae0ba43dc3e9fcad /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | eb1fae940df0117deb0dc891f9f9bfeca35b1ac1 (diff) |
Improve text rendering and measurement. [DO NOT MERGE]
1. Fix a bug where baseline of the run was modified while rendering
resulting in crooked text in some cases.
2. Use GlyphVector.getLogicalBounds() for text measurement which is more
accurate than getVisualBounds().
3. This change also optimizes text rendering by not computing the advances
for individual glyphs when not needed.
Change-Id: I66792c4d8f50eaf29afa70bccca1e6c812a3fa28
(cherry-picked from 45dbfcc781a3926d22571b6ccfa3f27ec896f119)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions