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

Unified Diff: ui/gfx/font_render_params.cc

Issue 387743002: Apply hinting in SkiaTextRenderer::SetFontRenderParams(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change autohinting default 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/font_render_params.cc
diff --git a/ui/gfx/font_render_params.cc b/ui/gfx/font_render_params.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5d8c22e8f590a5aef61bc8df2f8a049febc04bfa
--- /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

Powered by Google App Engine
This is Rietveld 408576698