diff options
author | bungeman <bungeman@google.com> | 2016-07-25 15:11:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-25 15:11:49 -0700 |
commit | 6e45bda29edef867468cbdd7c062d0d99e884656 (patch) | |
tree | 7902ff9ad3fdcb1c9417eaafdca60a4caae5a8b0 /include/core/SkTypeface.h | |
parent | 4e90e3eb5e43ffa8f347570578f5a538793b0cc7 (diff) |
Add test for typeface style round trip.
This also fixes the CG and GDI ports so they pass the test.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2171163002
Review-Url: https://codereview.chromium.org/2171163002
Diffstat (limited to 'include/core/SkTypeface.h')
-rw-r--r-- | include/core/SkTypeface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h index 4f3879c6c2..83008d3abf 100644 --- a/include/core/SkTypeface.h +++ b/include/core/SkTypeface.h @@ -346,6 +346,8 @@ protected: /** Sets the fixedPitch bit. If used, must be called in the constructor. */ void setIsFixedPitch(bool isFixedPitch) { fIsFixedPitch = isFixedPitch; } + /** Sets the font style. If used, must be called in the constructor. */ + void setFontStyle(SkFontStyle style) { fStyle = style; } friend class SkScalerContext; static SkTypeface* GetDefaultTypeface(Style style = SkTypeface::kNormal); |