diff options
Diffstat (limited to 'ui/gfx/font_list.cc')
-rw-r--r-- | ui/gfx/font_list.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/gfx/font_list.cc b/ui/gfx/font_list.cc index e01483a..72c8777 100644 --- a/ui/gfx/font_list.cc +++ b/ui/gfx/font_list.cc @@ -177,6 +177,11 @@ int FontList::GetBaseline() const { return common_baseline_; } +int FontList::GetCapHeight() const { + // Assume the primary font is used to render Latin characters. + return GetPrimaryFont().GetCapHeight(); +} + int FontList::GetStringWidth(const base::string16& text) const { // Rely on the primary font metrics for the time being. // TODO(yukishiino): Not only the first font, all the fonts in the list should |