diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-01-05 13:30:54 -0800 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2012-01-05 13:30:54 -0800 |
commit | c511bee87cda99a252d1a62487f47c8f05aee78c (patch) | |
tree | 5a1586e33205499fcbf2f9437dc5046ab5c6d834 /libs/hwui | |
parent | 2853041e6a5b848824a4e518a5d41cb334855302 (diff) | |
download | frameworks_base-c511bee87cda99a252d1a62487f47c8f05aee78c.zip frameworks_base-c511bee87cda99a252d1a62487f47c8f05aee78c.tar.gz frameworks_base-c511bee87cda99a252d1a62487f47c8f05aee78c.tar.bz2 |
Fix bug #5753006 Garbled Labels in Maps
- it was a regression introduced into this CL: https://android-git.corp.google.com/g/#/c/154240/5
- basically needed to set the GlyphID encoding to the Skia Paint as we are now using glyphID resulting
from the Harfbuzz shaping
- also define GlyphID encoding as the default on the Paint class
Change-Id: Idb7c2c57ac67595425ce3be9421258962690fcdd
Diffstat (limited to 'libs/hwui')
-rw-r--r-- | libs/hwui/DisplayListRenderer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/hwui/DisplayListRenderer.cpp b/libs/hwui/DisplayListRenderer.cpp index 5a52464..34e28da 100644 --- a/libs/hwui/DisplayListRenderer.cpp +++ b/libs/hwui/DisplayListRenderer.cpp @@ -1210,10 +1210,8 @@ void DisplayListRenderer::drawText(const char* text, int bytesCount, int count, // see if it matters. // If we make a copy, then drawTextDecorations() should *not* make // its own copy as it does right now. + // Beware: this needs Glyph encoding (already done on the Paint constructor) paint->setAntiAlias(true); -#if RENDER_TEXT_AS_GLYPHS - paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); -#endif addPaint(paint); addFloat(length < 0.0f ? paint->measureText(text, bytesCount) : length); } |