Index: ui/gfx/platform_font_win.h |
=================================================================== |
--- ui/gfx/platform_font_win.h (revision 133692) |
+++ ui/gfx/platform_font_win.h (working copy) |
@@ -47,6 +47,12 @@ |
// name could not be retrieved, returns GetFontName(). |
std::string GetLocalizedFontName() const; |
+ // Returns a derived Font with the specified |style| and with height at most |
+ // |height|. If the height and style of the receiver already match, it is |
+ // returned. Otherwise, the returned Font will have the largest size such that |
+ // its height is less than or equal to |height|. |
msw
2012/04/26 21:04:42
It's unclear (from the comment) why the resulting
Alexei Svitkine (slow)
2012/04/26 21:45:56
I've expanded the comment to explain that.
|
+ Font DeriveFontWithHeight(int height, int style); |
+ |
// Overridden from PlatformFont: |
virtual Font DeriveFont(int size_delta, int style) const OVERRIDE; |
virtual int GetHeight() const OVERRIDE; |
@@ -75,6 +81,7 @@ |
// This constructor takes control of the HFONT, and will delete it when |
// the HFontRef is deleted. |
HFontRef(HFONT hfont, |
+ int font_size, |
int height, |
int baseline, |
int ave_char_width, |