OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkFontStyle_DEFINED | 8 #ifndef SkFontStyle_DEFINED |
9 #define SkFontStyle_DEFINED | 9 #define SkFontStyle_DEFINED |
10 | 10 |
11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
12 | 12 |
13 class SK_API SkFontStyle { | 13 class SK_API SkFontStyle { |
14 public: | 14 public: |
15 enum Weight { | 15 enum Weight { |
16 kThin_Weight = 100, | 16 kInvisible_Weight = 0, |
17 kExtraLight_Weight = 200, | 17 kThin_Weight = 100, |
18 kLight_Weight = 300, | 18 kExtraLight_Weight = 200, |
19 kNormal_Weight = 400, | 19 kLight_Weight = 300, |
20 kMedium_Weight = 500, | 20 kNormal_Weight = 400, |
21 kSemiBold_Weight = 600, | 21 kMedium_Weight = 500, |
22 kBold_Weight = 700, | 22 kSemiBold_Weight = 600, |
23 kExtraBold_Weight = 800, | 23 kBold_Weight = 700, |
24 kBlack_Weight = 900 | 24 kExtraBold_Weight = 800, |
| 25 kBlack_Weight = 900, |
| 26 kExtraBlack_Weight = 1000 |
25 }; | 27 }; |
26 | 28 |
27 enum Width { | 29 enum Width { |
28 kUltraCondensed_Width = 1, | 30 kUltraCondensed_Width = 1, |
29 kExtraCondensed_Width = 2, | 31 kExtraCondensed_Width = 2, |
30 kCondensed_Width = 3, | 32 kCondensed_Width = 3, |
31 kSemiCondensed_Width = 4, | 33 kSemiCondensed_Width = 4, |
32 kNormal_Width = 5, | 34 kNormal_Width = 5, |
33 kSemiExpanded_Width = 6, | 35 kSemiExpanded_Width = 6, |
34 kExpanded_Width = 7, | 36 kExpanded_Width = 7, |
(...skipping 25 matching lines...) Expand all Loading... |
60 struct { | 62 struct { |
61 uint16_t fWeight; // 100 .. 900 | 63 uint16_t fWeight; // 100 .. 900 |
62 uint8_t fWidth; // 1 .. 9 | 64 uint8_t fWidth; // 1 .. 9 |
63 uint8_t fSlant; // 0 .. 2 | 65 uint8_t fSlant; // 0 .. 2 |
64 } fR; | 66 } fR; |
65 uint32_t fU32; | 67 uint32_t fU32; |
66 } fUnion; | 68 } fUnion; |
67 }; | 69 }; |
68 | 70 |
69 #endif | 71 #endif |
OLD | NEW |