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

Unified Diff: ui/gfx/font.h

Issue 382273002: ui/gfx: Allow for font-specific rendering settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review feedback 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.h
diff --git a/ui/gfx/font.h b/ui/gfx/font.h
index 5ab0f170bda38a741aa7d8be1f87707339933893..b65423175b811c98c9cead7d7c21f52e67b97537 100644
--- a/ui/gfx/font.h
+++ b/ui/gfx/font.h
@@ -14,6 +14,7 @@
namespace gfx {
+struct FontRenderParams;
class PlatformFont;
// Font provides a wrapper around an underlying font. Copy and assignment
@@ -93,6 +94,9 @@ class GFX_EXPORT Font {
// Returns the font size in pixels.
int GetFontSize() const;
+ // Returns an object describing how the font should be rendered.
+ const FontRenderParams& GetFontRenderParams() const;
+
// Returns the native font handle.
// Lifetime lore:
// Windows: This handle is owned by the Font object, and should not be

Powered by Google App Engine
This is Rietveld 408576698