Index: ui/gfx/font_list.h |
diff --git a/ui/gfx/font_list.h b/ui/gfx/font_list.h |
index 2c47f4ca1a479b9d78f66c6c2a4c5ea09e20d948..1acccb6cefc84d475f19e78c2f34d15cf5049d53 100644 |
--- a/ui/gfx/font_list.h |
+++ b/ui/gfx/font_list.h |
@@ -85,13 +85,12 @@ class GFX_EXPORT FontList { |
// Currently returns the cap height of the primary font. |
int GetCapHeight() const; |
- // Returns the number of horizontal pixels needed to display |text|. |
- int GetStringWidth(const base::string16& text) const; |
+ // Returns the pixel width needed to display |text|. |
+ float GetStringWidth(const base::string16& text) const; |
- // Returns the expected number of horizontal pixels needed to display the |
- // specified length of characters. Call GetStringWidth() to retrieve the |
- // actual number. |
- int GetExpectedTextWidth(int length) const; |
+ // Returns the expected pixel width needed to display the specified length of |
+ // characters. Call GetStringWidth() to retrieve the actual number. |
+ float GetExpectedTextWidth(int length) const; |
// Returns the |gfx::Font::FontStyle| style flags for this font list. |
int GetFontStyle() const; |