From 290f5baf9192752287723a29ede4399ae3e4c826 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Fri, 19 Jun 2009 15:13:39 -0400 Subject: when we reset a paint, it should return to the state it was in when it was first created. for java, this means setting its text-encoding to UTF16... --- core/jni/android/graphics/Paint.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/jni/android/graphics/Paint.cpp b/core/jni/android/graphics/Paint.cpp index 76e6f02..d1fe83e 100644 --- a/core/jni/android/graphics/Paint.cpp +++ b/core/jni/android/graphics/Paint.cpp @@ -69,6 +69,8 @@ public: static void reset(JNIEnv* env, jobject clazz, SkPaint* obj) { obj->reset(); + // utf16 is required for java + obj->setTextEncoding(SkPaint::kUTF16_TextEncoding); } static void assign(JNIEnv* env, jobject clazz, SkPaint* dst, const SkPaint* src) { -- cgit v1.1