Index: ui/gfx/text_utils.h |
diff --git a/ui/gfx/text_utils.h b/ui/gfx/text_utils.h |
index fa5caef2db6f0a879f4cd3e45c1d753d197de820..d221c9cfcc1a7b18c27230c282e2fbcdde16a14b 100644 |
--- a/ui/gfx/text_utils.h |
+++ b/ui/gfx/text_utils.h |
@@ -27,6 +27,12 @@ GFX_EXPORT base::string16 RemoveAcceleratorChar(const base::string16& s, |
GFX_EXPORT int GetStringWidth(const base::string16& text, |
const FontList& font_list); |
+// Returns the pixel width needed to display the specified |text| with |
+//|font_list|. Note that the fractional width might be returned on some |
Alexei Svitkine (slow)
2013/10/07 23:33:28
Maybe mention explicitly which ones like the rende
jianli
2013/10/08 00:01:18
Done.
|
+// platforms. |
+GFX_EXPORT float GetStringWidthF(const base::string16& text, |
+ const FontList& font_list); |
+ |
} // namespace gfx |
#endif // UI_GFX_TEXT_UTILS_H_ |