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

Unified Diff: ui/gfx/font_list.h

Issue 382273002: ui/gfx: Allow for font-specific rendering settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: diff against https://codereview.chromium.org/387743002/ 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_list.h
diff --git a/ui/gfx/font_list.h b/ui/gfx/font_list.h
index 1ba8ad1aff9f0511bcf3c17421f15655766e14f1..503371d7f75c7b2c1a313571edfaee7f19e27b15 100644
--- a/ui/gfx/font_list.h
+++ b/ui/gfx/font_list.h
@@ -15,6 +15,7 @@
namespace gfx {
class FontListImpl;
+struct FontRenderParams;
// FontList represents a list of fonts and provides metrics which are common
// in the fonts. FontList is copyable and it's quite cheap to copy.
@@ -111,6 +112,9 @@ class GFX_EXPORT FontList {
// Returns the font size in pixels.
int GetFontSize() const;
+ // Returns an object describing how the primary font should be rendered.
msw 2014/07/12 00:27:31 Can we avoid this? I'd rather users explicitly cal
Daniel Erat 2014/07/12 01:55:32 sure, i just did this to match the style of the re
msw 2014/07/12 02:26:40 Yeah, it's a gray area, but good to avoid non-obvi
+ const FontRenderParams& GetFontRenderParams() const;
+
// Returns the Font vector.
const std::vector<Font>& GetFonts() const;
« no previous file with comments | « ui/gfx/font.cc ('k') | ui/gfx/font_list.cc » ('j') | ui/gfx/font_render_params.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698