diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-04-12 17:36:29 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-12 17:36:29 -0700 |
commit | 5cf20011a27fd13d9d08ae32b902471bb5fd0a65 (patch) | |
tree | 656b88e156a008e4b08bdb54e45c90054c3a8a11 /include | |
parent | bf7bfdcb89558e4e922285fc4486ba6d64082f66 (diff) | |
parent | 5c7fc8f96344cc7f780558c714d3e52f0669b0b8 (diff) | |
download | external_skia-5cf20011a27fd13d9d08ae32b902471bb5fd0a65.zip external_skia-5cf20011a27fd13d9d08ae32b902471bb5fd0a65.tar.gz external_skia-5cf20011a27fd13d9d08ae32b902471bb5fd0a65.tar.bz2 |
Merge "Add SkPaint.setTextLocale()"
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPaint.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index 31bc30b..7be5ad2 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -13,6 +13,7 @@ #include "SkColor.h" #include "SkDrawLooper.h" #include "SkXfermode.h" +#include "SkString.h" class SkAutoGlyphCache; class SkColorFilter; @@ -654,6 +655,18 @@ public: */ void setTextAlign(Align align); +#ifdef SK_BUILD_FOR_ANDROID + /** Return the paint's text locale value. + @return the paint's text locale value used for drawing text. + */ + const SkString& getTextLocale() const { return fTextLocale; } + + /** Set the paint's text locale. + @param locale set the paint's locale value for drawing text. + */ + void setTextLocale(const SkString& locale); +#endif + /** Return the paint's text size. @return the paint's text size. */ @@ -888,6 +901,9 @@ private: unsigned fStyle : 2; unsigned fTextEncoding : 2; // 3 values unsigned fHinting : 2; +#ifdef SK_BUILD_FOR_ANDROID + SkString fTextLocale; +#endif SkDrawCacheProc getDrawCacheProc() const; SkMeasureCacheProc getMeasureCacheProc(TextBufferDirection dir, |