OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDER_PARAMS_H_ | 5 #ifndef UI_GFX_FONT_RENDER_PARAMS_H_ |
6 #define UI_GFX_FONT_RENDER_PARAMS_H_ | 6 #define UI_GFX_FONT_RENDER_PARAMS_H_ |
7 | 7 |
8 #include "ui/gfx/gfx_export.h" | 8 #include "ui/gfx/gfx_export.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
11 | 11 |
12 // A collection of parameters describing how text should be rendered on Linux. | 12 // A collection of parameters describing how text should be rendered on Linux. |
13 struct GFX_EXPORT FontRenderParams { | 13 struct GFX_EXPORT FontRenderParams { |
14 // No constructor to avoid static initialization. | 14 FontRenderParams(); |
| 15 ~FontRenderParams(); |
15 | 16 |
16 // Level of hinting to be applied. | 17 // Level of hinting to be applied. |
17 enum Hinting { | 18 enum Hinting { |
18 HINTING_NONE = 0, | 19 HINTING_NONE = 0, |
19 HINTING_SLIGHT, | 20 HINTING_SLIGHT, |
20 HINTING_MEDIUM, | 21 HINTING_MEDIUM, |
21 HINTING_FULL, | 22 HINTING_FULL, |
22 }; | 23 }; |
23 | 24 |
24 // Different subpixel orders to be used for subpixel rendering. | 25 // Different subpixel orders to be used for subpixel rendering. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 62 |
62 // Returns the system's default parameters for WebKit subpixel positioning. | 63 // Returns the system's default parameters for WebKit subpixel positioning. |
63 // Subpixel positioning is special since neither GTK nor FontConfig currently | 64 // Subpixel positioning is special since neither GTK nor FontConfig currently |
64 // track it as a preference. | 65 // track it as a preference. |
65 // See https://bugs.freedesktop.org/show_bug.cgi?id=50736 | 66 // See https://bugs.freedesktop.org/show_bug.cgi?id=50736 |
66 GFX_EXPORT bool GetDefaultWebkitSubpixelPositioning(); | 67 GFX_EXPORT bool GetDefaultWebkitSubpixelPositioning(); |
67 | 68 |
68 } // namespace gfx | 69 } // namespace gfx |
69 | 70 |
70 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ | 71 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ |
OLD | NEW |