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

Side by Side Diff: ui/gfx/font_render_params.h

Issue 387743002: Apply hinting in SkiaTextRenderer::SetFontRenderParams(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add fallback return Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/gfx/font_render_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/font_render_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698