diff options
author | 2016-07-25 15:11:49 -0700 | |
---|---|---|
committer | 2016-07-25 15:11:49 -0700 | |
commit | 6e45bda29edef867468cbdd7c062d0d99e884656 (patch) | |
tree | 7902ff9ad3fdcb1c9417eaafdca60a4caae5a8b0 /include/core/SkFontStyle.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/SkFontStyle.h')
-rw-r--r-- | include/core/SkFontStyle.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/core/SkFontStyle.h b/include/core/SkFontStyle.h index f4ffbb9675..643b69bd03 100644 --- a/include/core/SkFontStyle.h +++ b/include/core/SkFontStyle.h @@ -13,15 +13,17 @@ class SK_API SkFontStyle { public: enum Weight { - kThin_Weight = 100, - kExtraLight_Weight = 200, - kLight_Weight = 300, - kNormal_Weight = 400, - kMedium_Weight = 500, - kSemiBold_Weight = 600, - kBold_Weight = 700, - kExtraBold_Weight = 800, - kBlack_Weight = 900 + kInvisible_Weight = 0, + kThin_Weight = 100, + kExtraLight_Weight = 200, + kLight_Weight = 300, + kNormal_Weight = 400, + kMedium_Weight = 500, + kSemiBold_Weight = 600, + kBold_Weight = 700, + kExtraBold_Weight = 800, + kBlack_Weight = 900, + kExtraBlack_Weight = 1000 }; enum Width { |