summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2012-09-24 16:14:38 -0700
committerRaph Levien <raph@google.com>2012-09-24 16:14:38 -0700
commit1b10241a8f0affab9f46719e46c6fedff9e69b8b (patch)
tree63dc530a10abd9c421d315f9387c7ceb2cfc9899 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent4249be40bd1c51dae37c27f9450ed01f19edcbef (diff)
Fix for bug 6936752 Tamil text gets truncated on right-hand side
The getTextRunAdvances() method wasn't accounting for the true width of the text. On closer examination, in Tamil the clusters consist of a number of glyphs each of which has a nonzero advance (in some other scripts, the first glyph in the cluster has an advance, and others are effectively zero). Previously, we were just using the advance of the first glyph in the cluster. This patch changes the behavior to sum the advances of all the glyphs within the cluster. Change-Id: I77a51235f4bb0dfaa72cbb920a8c3b217ad25404
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions