diff options
author | Romain Guy <romainguy@google.com> | 2012-08-07 19:09:57 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2012-08-07 19:09:57 -0700 |
commit | 33fa1f774c8e7289fd7c39fbc2c65b9361f2c2c4 (patch) | |
tree | d74879134ece535c3930df34a05857566be6307b /tests/HwAccelerationTest/src/com/android | |
parent | 2440e670de0294bdf64592849613db9b8f00ee11 (diff) | |
download | frameworks_base-33fa1f774c8e7289fd7c39fbc2c65b9361f2c2c4.zip frameworks_base-33fa1f774c8e7289fd7c39fbc2c65b9361f2c2c4.tar.gz frameworks_base-33fa1f774c8e7289fd7c39fbc2c65b9361f2c2c4.tar.bz2 |
Draw an empty border around glyphs to avoid sampling issues
Bug #6942209
The font renderer was preserving a 1 px border around each glyph to ensure
bilinear filtering would work nicely. Unfortunately, this border was not
set to 0 when glyphs were added in the cache to replace old evicted glyphs.
Change-Id: Ib85afca7ebad5cb63f960dc0e87ae162333dbfe8
Diffstat (limited to 'tests/HwAccelerationTest/src/com/android')
-rw-r--r-- | tests/HwAccelerationTest/src/com/android/test/hwui/TextActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/TextActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/TextActivity.java index 0a868fa..4a1f5a2 100644 --- a/tests/HwAccelerationTest/src/com/android/test/hwui/TextActivity.java +++ b/tests/HwAccelerationTest/src/com/android/test/hwui/TextActivity.java @@ -153,6 +153,12 @@ public class TextActivity extends Activity { canvas.drawText("Hello OpenGL renderer!", 100, 300, mLargePaint); canvas.restore(); +// mStrikePaint.setUnderlineText(false); +// canvas.save(); +// canvas.scale(20.0f, 20.0f); +// canvas.drawText("aeiouyw", 5.0f, 750 / 20.0f, mStrikePaint); +// canvas.restore(); +// mStrikePaint.setUnderlineText(true); } } } |