Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: include/core/SkFontStyle.h

Issue 2171163002: Add test for typeface style round trip. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Name extremes, add comment. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | include/core/SkTypeface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | include/core/SkTypeface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698