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 #include "ui/gfx/font_render_params.h" | 5 #include "ui/gfx/font_render_params.h" |
6 | 6 |
7 namespace gfx { | 7 namespace gfx { |
8 | 8 |
9 FontRenderParams::FontRenderParams() | 9 FontRenderParams::FontRenderParams() |
10 : antialiasing(true), | 10 : antialiasing(true), |
11 subpixel_positioning(true), | 11 subpixel_positioning(true), |
12 autohinter(true), | 12 autohinter(false), |
13 use_bitmaps(true), | 13 use_bitmaps(false), |
14 hinting(HINTING_SLIGHT), | 14 hinting(HINTING_MEDIUM), |
15 subpixel_rendering(SUBPIXEL_RENDERING_RGB) { | 15 subpixel_rendering(SUBPIXEL_RENDERING_NONE) { |
16 } | 16 } |
17 | 17 |
18 FontRenderParams::~FontRenderParams() {} | 18 FontRenderParams::~FontRenderParams() {} |
19 | 19 |
20 FontRenderParamsQuery::FontRenderParamsQuery(bool for_web_contents) | 20 FontRenderParamsQuery::FontRenderParamsQuery(bool for_web_contents) |
21 : for_web_contents(for_web_contents), | 21 : for_web_contents(for_web_contents), |
22 pixel_size(0), | 22 pixel_size(0), |
23 point_size(0), | 23 point_size(0), |
24 style(-1) { | 24 style(-1) { |
25 } | 25 } |
26 | 26 |
27 FontRenderParamsQuery::~FontRenderParamsQuery() {} | 27 FontRenderParamsQuery::~FontRenderParamsQuery() {} |
28 | 28 |
29 } // namespace gfx | 29 } // namespace gfx |
OLD | NEW |