diff options
author | Raph Levien <raph@google.com> | 2014-06-06 17:56:41 -0700 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2014-06-10 11:59:29 -0700 |
commit | 9a5f713add8cfb91ac2c9ed5c917309053201ab6 (patch) | |
tree | 7d6be261f3a7d30b0d7f14a66b2ff5e290e1bc4f /include/minikin/MinikinFont.h | |
parent | 89566f0ada1cafe673efa064cde38467990235d4 (diff) | |
download | android_frameworks_minikin-9a5f713add8cfb91ac2c9ed5c917309053201ab6.tar.gz android_frameworks_minikin-9a5f713add8cfb91ac2c9ed5c917309053201ab6.tar.bz2 android_frameworks_minikin-9a5f713add8cfb91ac2c9ed5c917309053201ab6.zip |
Support for fake bold and italics
This patch adds support for computing when fake bold and fake italics
are needed (because the styles are requested but not provided by the
matching FontFamily), and providing them as part of the layout result.
Part of the fix for bug 15436379 Fake bold doesn't fully work (Minikin)
Change-Id: I180c034b559837943673b5c272c8e890178dff0d
Diffstat (limited to 'include/minikin/MinikinFont.h')
-rw-r--r-- | include/minikin/MinikinFont.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/minikin/MinikinFont.h b/include/minikin/MinikinFont.h index 9ff08a9..7915ef2 100644 --- a/include/minikin/MinikinFont.h +++ b/include/minikin/MinikinFont.h @@ -18,6 +18,7 @@ #define MINIKIN_FONT_H #include <minikin/MinikinRefCounted.h> +#include <minikin/FontFamily.h> // An abstraction for platform fonts, allowing Minikin to be used with // multiple actual implementations of fonts. @@ -34,6 +35,7 @@ struct MinikinPaint { float scaleX; float skewX; uint32_t paintFlags; + FontFakery fakery; }; struct MinikinRect { |