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

Unified Diff: printing/printed_document_win.cc

Issue 3083022: Rework gfx::Font by moving platform-specific code into inner classes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « printing/printed_document.cc ('k') | views/controls/button/checkbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_document_win.cc
===================================================================
--- printing/printed_document_win.cc (revision 55911)
+++ printing/printed_document_win.cc (working copy)
@@ -114,13 +114,13 @@
-page_setup.printable_area().x(),
-page_setup.printable_area().y(),
1);
- int base_font_size = gfx::Font().height();
+ int base_font_size = gfx::Font().GetHeight();
int new_font_size = ConvertUnit(10,
immutable_.settings_.desired_dpi,
immutable_.settings_.device_units_per_inch());
DCHECK_GT(new_font_size, base_font_size);
gfx::Font font(gfx::Font().DeriveFont(new_font_size - base_font_size));
- HGDIOBJ old_font = SelectObject(context, font.hfont());
+ HGDIOBJ old_font = SelectObject(context, font.GetNativeFont());
DCHECK(old_font != NULL);
// We don't want a white square around the text ever if overflowing.
SetBkMode(context, TRANSPARENT);
« no previous file with comments | « printing/printed_document.cc ('k') | views/controls/button/checkbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698