| Index: ui/gfx/platform_font.h
|
| diff --git a/ui/gfx/platform_font.h b/ui/gfx/platform_font.h
|
| index 7670d47602a3724114a4dc4bd3d93e282ed7f1e8..a6a19b9f3cd96b78d6944fe49de3e9ca91308d95 100644
|
| --- a/ui/gfx/platform_font.h
|
| +++ b/ui/gfx/platform_font.h
|
| @@ -42,17 +42,15 @@ class GFX_EXPORT PlatformFont : public base::RefCounted<PlatformFont> {
|
| // Returns the baseline, or ascent, of the font.
|
| virtual int GetBaseline() const = 0;
|
|
|
| - // Returns the average character width for the font.
|
| - virtual int GetAverageCharacterWidth() const = 0;
|
| + // Returns the pixel width for the font.
|
| + virtual float GetAverageCharacterWidth() const = 0;
|
|
|
| - // Returns the number of horizontal pixels needed to display the specified
|
| - // string.
|
| - virtual int GetStringWidth(const base::string16& text) const = 0;
|
| + // Returns the pixel width needed to display the specified string.
|
| + virtual float GetStringWidth(const base::string16& text) const = 0;
|
|
|
| - // Returns the expected number of horizontal pixels needed to display the
|
| - // specified length of characters. Call GetStringWidth() to retrieve the
|
| - // actual number.
|
| - virtual int GetExpectedTextWidth(int length) const = 0;
|
| + // Returns the expected pixel width needed to display the specified length of
|
| + // characters. Call GetStringWidth() to retrieve the actual number.
|
| + virtual float GetExpectedTextWidth(int length) const = 0;
|
|
|
| // Returns the style of the font.
|
| virtual int GetStyle() const = 0;
|
|
|