summaryrefslogtreecommitdiffstats
path: root/ui/gfx/font_render_params.cc
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-11 21:21:18 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-11 21:21:18 +0000
commit6b2e23739cf05dbd8013c63464a5f69c5facb2a1 (patch)
treea9ab0fd21502b5d9faef021c8e40d630cde482a8 /ui/gfx/font_render_params.cc
parent2557970c4b5494d82587f6270a1ba500b831daa2 (diff)
downloadchromium_src-6b2e23739cf05dbd8013c63464a5f69c5facb2a1.zip
chromium_src-6b2e23739cf05dbd8013c63464a5f69c5facb2a1.tar.gz
chromium_src-6b2e23739cf05dbd8013c63464a5f69c5facb2a1.tar.bz2
Apply hinting in SkiaTextRenderer::SetFontRenderParams().
Make SetFontRenderParams() pass the hinting setting through to SkPaint instead of exposing a separate SetFontHinting() method. Also add a default c'tor for FontRenderParams and pass its autohinter setting through to SkPaint as well. BUG=125235,375824 Review URL: https://codereview.chromium.org/387743002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/font_render_params.cc')
-rw-r--r--ui/gfx/font_render_params.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/gfx/font_render_params.cc b/ui/gfx/font_render_params.cc
new file mode 100644
index 0000000..5d8c22e
--- /dev/null
+++ b/ui/gfx/font_render_params.cc
@@ -0,0 +1,20 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/gfx/font_render_params.h"
+
+namespace gfx {
+
+FontRenderParams::FontRenderParams()
+ : antialiasing(true),
+ subpixel_positioning(true),
+ autohinter(true),
+ use_bitmaps(true),
+ hinting(HINTING_SLIGHT),
+ subpixel_rendering(SUBPIXEL_RENDERING_RGB) {
+}
+
+FontRenderParams::~FontRenderParams() {}
+
+} // namespace gfx