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

Unified Diff: ui/gfx/font.h

Issue 25039002: Always aligns text at vertically center (Textfield, Label). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 7 years, 2 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 | « chrome/browser/ui/views/omnibox/omnibox_views.cc ('k') | ui/gfx/font_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font.h
diff --git a/ui/gfx/font.h b/ui/gfx/font.h
index 020ab64f744e1d807aaa404ddbf6bc046d218f3a..f84bfa2bf6b5e5cad3fda666240b1cbc0b989652 100644
--- a/ui/gfx/font.h
+++ b/ui/gfx/font.h
@@ -18,6 +18,15 @@ class PlatformFont;
// Font provides a wrapper around an underlying font. Copy and assignment
// operators are explicitly allowed, and cheap.
+//
+// Figure of font metrics:
+// +--------+-------------------+------------------+
+// | | | internal leading |
+// | | ascent (baseline) +------------------+
+// | height | | cap height |
+// | |-------------------+------------------+
+// | | descent (height - baseline) |
+// +--------+--------------------------------------+
class GFX_EXPORT Font {
public:
// The following constants indicate the font style.
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_views.cc ('k') | ui/gfx/font_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698