diff options
| author | Kenny Root <kroot@google.com> | 2010-07-13 13:51:24 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-07-13 13:51:24 -0700 |
| commit | f35c96bb498ffa7b3348b4bf17e9e7475f6bb324 (patch) | |
| tree | fe020499af2bf0bcb539b04f8115069e2aa8529f /graphics | |
| parent | c9cf223dd004cf411235508e4fb0b7199910c1c7 (diff) | |
| parent | f7cb1f75fdaedf996cab7c4690b080adc7bc5b97 (diff) | |
| download | frameworks_base-f35c96bb498ffa7b3348b4bf17e9e7475f6bb324.zip frameworks_base-f35c96bb498ffa7b3348b4bf17e9e7475f6bb324.tar.gz frameworks_base-f35c96bb498ffa7b3348b4bf17e9e7475f6bb324.tar.bz2 | |
Merge "Support bidi/shaping for getTextPath"
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/java/android/graphics/Paint.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/graphics/java/android/graphics/Paint.java b/graphics/java/android/graphics/Paint.java index 88ff0e6..9b4d3a8 100644 --- a/graphics/java/android/graphics/Paint.java +++ b/graphics/java/android/graphics/Paint.java @@ -1718,7 +1718,8 @@ public class Paint { if ((index | count) < 0 || index + count > text.length) { throw new ArrayIndexOutOfBoundsException(); } - native_getTextPath(mNativePaint, text, index, count, x, y, path.ni()); + native_getTextPath(mNativePaint, mBidiFlags, text, index, count, x, y, + path.ni()); } /** @@ -1739,7 +1740,8 @@ public class Paint { if ((start | end | (end - start) | (text.length() - end)) < 0) { throw new IndexOutOfBoundsException(); } - native_getTextPath(mNativePaint, text, start, end, x, y, path.ni()); + native_getTextPath(mNativePaint, mBidiFlags, text, start, end, x, y, + path.ni()); } /** @@ -1836,9 +1838,9 @@ public class Paint { private native int native_getTextRunCursor(int native_object, String text, int contextStart, int contextEnd, int flags, int offset, int cursorOpt); - private static native void native_getTextPath(int native_object, + private static native void native_getTextPath(int native_object, int bidiFlags, char[] text, int index, int count, float x, float y, int path); - private static native void native_getTextPath(int native_object, + private static native void native_getTextPath(int native_object, int bidiFlags, String text, int start, int end, float x, float y, int path); private static native void nativeGetStringBounds(int nativePaint, String text, int start, int end, Rect bounds); |
