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

Unified Diff: ui/gfx/font_list.h

Issue 18848002: Shows Japanese and English mixed queries correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds a unit test. Created 7 years, 5 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/font_list.cc » ('j') | ui/gfx/font_list.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_list.h
diff --git a/ui/gfx/font_list.h b/ui/gfx/font_list.h
index d070b5b588c2f63f834bc31c0f3dbac15f14d72e..1b0f97ed2945f07f04047785dc0789633be7e9fc 100644
--- a/ui/gfx/font_list.h
+++ b/ui/gfx/font_list.h
@@ -57,6 +57,14 @@ class UI_EXPORT FontList {
// given font |size| in pixels.
FontList DeriveFontListWithSize(int size) const;
+ // Returns the height of this font list, which is max(ascent) + max(descent)
+ // for all the fonts in the font list.
+ int GetHeight() const;
+
+ // Returns the baseline of this font list, which is max(baseline) for all the
+ // fonts in the font list.
+ int GetBaseline() const;
+
// Returns the |gfx::Font::FontStyle| style flags for this font list.
int GetFontStyle() const;
« no previous file with comments | « no previous file | ui/gfx/font_list.cc » ('j') | ui/gfx/font_list.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698