diff options
author | Raph Levien <raph@google.com> | 2014-05-30 23:38:56 -0700 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2014-06-03 17:05:51 -0700 |
commit | 448b0fd720d7ba902b9be224a287d08abe3ebea8 (patch) | |
tree | 8474d0b8258f84b63a4f17cb96619ae7870cce4d /include/minikin/MinikinFont.h | |
parent | 066e8575af64fb452617ac6005de6ccf6509553b (diff) | |
download | android_frameworks_minikin-448b0fd720d7ba902b9be224a287d08abe3ebea8.tar.gz android_frameworks_minikin-448b0fd720d7ba902b9be224a287d08abe3ebea8.tar.bz2 android_frameworks_minikin-448b0fd720d7ba902b9be224a287d08abe3ebea8.zip |
Support for scaleX and skewX
Adds pseudo-css properties for scaleX and skewX, as well as paint flags,
and plumb them through to the MinikinPaint abstraction and to Harfbuzz,
to support nontrivial scale and stretch of text.
This is the Minikin part of the fix for bug 15186705 "Usability of the
suggestion strip in recent OTA's is severely reduced"
Change-Id: Ifa60355e086e4691ff92c5d50d84eb7cea0fea95
Diffstat (limited to 'include/minikin/MinikinFont.h')
-rw-r--r-- | include/minikin/MinikinFont.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/minikin/MinikinFont.h b/include/minikin/MinikinFont.h index dbb89f8..1f6894c 100644 --- a/include/minikin/MinikinFont.h +++ b/include/minikin/MinikinFont.h @@ -31,7 +31,9 @@ class MinikinFont; struct MinikinPaint { MinikinFont *font; float size; - // todo: skew, stretch, hinting + float scaleX; + float skewX; + int32_t paintFlags; }; struct MinikinRect { |