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

Unified Diff: app/gfx/font.h

Issue 351024: Fixed font height on OS X. Also added some unittests. (Closed)
Patch Set: Expanded on comment. Created 11 years, 1 month 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 | app/gfx/font_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/font.h
diff --git a/app/gfx/font.h b/app/gfx/font.h
index ccc1a64ecdbcdf5102e165acd4e882bc11e798a7..80a85ecd4b1df539a06fb2dac3b02d6c3386b52e 100644
--- a/app/gfx/font.h
+++ b/app/gfx/font.h
@@ -73,7 +73,10 @@ class Font {
Font DeriveFont(int size_delta, int style) const;
// Returns the number of vertical pixels needed to display characters from
- // the specified font.
+ // the specified font. This may include some leading, i.e. height may be
+ // greater than just ascent + descent. Specifically, the Windows and Mac
+ // implementations include leading and the Linux one does not. This may
+ // need to be revisited in the future.
int height() const;
// Returns the baseline, or ascent, of the font.
« no previous file with comments | « no previous file | app/gfx/font_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698