OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_FONT_LIST_H_ | 5 #ifndef UI_GFX_FONT_LIST_H_ |
6 #define UI_GFX_FONT_LIST_H_ | 6 #define UI_GFX_FONT_LIST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ui/base/ui_export.h" | |
12 #include "ui/gfx/font.h" | 11 #include "ui/gfx/font.h" |
| 12 #include "ui/gfx/gfx_export.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 | 15 |
16 // FontList represents a list of fonts either in the form of Font vector or in | 16 // FontList represents a list of fonts either in the form of Font vector or in |
17 // the form of a string representing font names, styles, and size. | 17 // the form of a string representing font names, styles, and size. |
18 // | 18 // |
19 // The string representation is in the form "FAMILY_LIST [STYLE_OPTIONS] SIZE", | 19 // The string representation is in the form "FAMILY_LIST [STYLE_OPTIONS] SIZE", |
20 // where FAMILY_LIST is a comma separated list of families terminated by a | 20 // where FAMILY_LIST is a comma separated list of families terminated by a |
21 // comma, STYLE_OPTIONS is a whitespace separated list of words where each word | 21 // comma, STYLE_OPTIONS is a whitespace separated list of words where each word |
22 // describes one of style, variant, weight, stretch, or gravity, and SIZE is | 22 // describes one of style, variant, weight, stretch, or gravity, and SIZE is |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 mutable int common_baseline_; | 132 mutable int common_baseline_; |
133 | 133 |
134 // Cached font style and size. | 134 // Cached font style and size. |
135 mutable int font_style_; | 135 mutable int font_style_; |
136 mutable int font_size_; | 136 mutable int font_size_; |
137 }; | 137 }; |
138 | 138 |
139 } // namespace gfx | 139 } // namespace gfx |
140 | 140 |
141 #endif // UI_GFX_FONT_LIST_H_ | 141 #endif // UI_GFX_FONT_LIST_H_ |
OLD | NEW |