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

Unified Diff: ui/gfx/platform_font_win.h

Issue 10228009: Fix CJK font linking size on Windows XP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | ui/gfx/platform_font_win.cc » ('j') | ui/gfx/platform_font_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | ui/gfx/platform_font_win.cc » ('j') | ui/gfx/platform_font_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698