diff options
author | Raph Levien <raph@google.com> | 2015-04-23 16:12:23 -0700 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2015-04-27 15:33:03 -0700 |
commit | c6abf5bff6bbfafa1f133644f02a5d50d5269b7f (patch) | |
tree | 8823d8ef7116a6378e6aef476d7bbe5f731a1202 /tools | |
parent | 25d12e3f6a5ef15add0c0ccb560bb842283b98e2 (diff) | |
download | frameworks_base-c6abf5bff6bbfafa1f133644f02a5d50d5269b7f.zip frameworks_base-c6abf5bff6bbfafa1f133644f02a5d50d5269b7f.tar.gz frameworks_base-c6abf5bff6bbfafa1f133644f02a5d50d5269b7f.tar.bz2 |
Expose drawTextRun publicly
For correct low-level drawing of low level text, a method that
includes context for shaping is necessary, and it's similarly useful
to provide the direction explicitly rather than running the BiDi
algorithm on the text. The drawTextRun method (in both char[] and
CharSequence variants) has provided this functionality for several
major releases but has been internal. This patch exposes the
methods publicly, and also improves the doc strings for both
the new method and some related ones.
Bug: 20193553
Change-Id: I9be33ca5ae3e7db2b69a56298400671d5ef8ad05
Diffstat (limited to 'tools')
-rw-r--r-- | tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java index 4d2d100..9f5ad84 100644 --- a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java +++ b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java @@ -844,7 +844,7 @@ public final class Canvas_Delegate { @LayoutlibDelegate /*package*/ static void native_drawText(long nativeCanvas, char[] text, int index, int count, float startX, float startY, int flags, long paint, long typeface) { - drawText(nativeCanvas, text, index, count, startX, startY, flags == Canvas.DIRECTION_RTL, + drawText(nativeCanvas, text, index, count, startX, startY, (flags & 1) != 0, paint, typeface); } |