| Index: ui/gfx/platform_font_win.h
|
| diff --git a/ui/gfx/platform_font_win.h b/ui/gfx/platform_font_win.h
|
| index 2c6f51e0508dbe39374cd9347c6986f5f2d19b67..c07226241dc38b05ab572f291b7bfbb75df11350 100644
|
| --- a/ui/gfx/platform_font_win.h
|
| +++ b/ui/gfx/platform_font_win.h
|
| @@ -142,6 +142,14 @@ class GFX_EXPORT PlatformFontWin : public PlatformFont {
|
| // Creates and returns a new HFONTRef from the specified HFONT.
|
| static HFontRef* CreateHFontRef(HFONT font);
|
|
|
| + // Creates and returns a new HFONTRef from the specified HFONT. Uses provided
|
| + // |font_metrics| instead of calculating new one.
|
| + static HFontRef* CreateHFontRef(HFONT font, const TEXTMETRIC& font_metrics);
|
| +
|
| + // Returns a largest derived Font whose height does not exceed the height of
|
| + // |base_font|.
|
| + static Font DeriveWithCorrectedSize(HFONT base_font);
|
| +
|
| // Creates a new PlatformFontWin with the specified HFontRef. Used when
|
| // constructing a Font from a HFONT we don't want to copy.
|
| explicit PlatformFontWin(HFontRef* hfont_ref);
|
|
|