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

Unified Diff: ui/gfx/platform_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 more comments 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/platform_font.h
diff --git a/ui/gfx/platform_font.h b/ui/gfx/platform_font.h
index 27f39b751a957710e39036592115644dfffefe02..42f46ea1360248ce060ef98bdefe2a6dd734dc7d 100644
--- a/ui/gfx/platform_font.h
+++ b/ui/gfx/platform_font.h
@@ -15,6 +15,7 @@
namespace gfx {
class Font;
+struct FontRenderParams;
class GFX_EXPORT PlatformFont : public base::RefCounted<PlatformFont> {
public:
@@ -62,6 +63,9 @@ class GFX_EXPORT PlatformFont : public base::RefCounted<PlatformFont> {
// Returns the font size in pixels.
virtual int GetFontSize() const = 0;
+ // Returns an object describing how the font should be rendered.
+ virtual const FontRenderParams& GetFontRenderParams() const = 0;
+
// Returns the native font handle.
virtual NativeFont GetNativeFont() const = 0;

Powered by Google App Engine
This is Rietveld 408576698