The font cache should respect the fake bold flag.
Change-Id: Ie4edc9ba46610edde831b55e769944e9a19bdcb5
diff --git a/libs/hwui/FontRenderer.h b/libs/hwui/FontRenderer.h
index 7e749ca..40572c6 100644
--- a/libs/hwui/FontRenderer.h
+++ b/libs/hwui/FontRenderer.h
@@ -41,6 +41,10 @@
*/
class Font {
public:
+ enum Style {
+ kFakeBold
+ };
+
~Font();
/**
@@ -53,7 +57,7 @@
/**
* Creates a new font associated with the specified font state.
*/
- static Font* create(FontRenderer* state, uint32_t fontId, float fontSize);
+ static Font* create(FontRenderer* state, uint32_t fontId, float fontSize, int flags);
protected:
friend class FontRenderer;
@@ -99,7 +103,7 @@
SkFixed mRsbDelta;
};
- Font(FontRenderer* state, uint32_t fontId, float fontSize);
+ Font(FontRenderer* state, uint32_t fontId, float fontSize, int flags);
DefaultKeyedVector<int32_t, CachedGlyphInfo*> mCachedGlyphs;
@@ -117,6 +121,7 @@
FontRenderer* mState;
uint32_t mFontId;
float mFontSize;
+ int mFlags;
};
class FontRenderer {