Index: ui/gfx/platform_font.h |
diff --git a/ui/gfx/platform_font.h b/ui/gfx/platform_font.h |
index 48e14cf99608ad0fb52cae9b2ef6b2763cb99f2f..183486e804bf1672fb29b51f76db43a2c9bf768f 100644 |
--- a/ui/gfx/platform_font.h |
+++ b/ui/gfx/platform_font.h |
@@ -21,6 +21,16 @@ struct FontRenderParams; |
class GFX_EXPORT PlatformFont : public base::RefCounted<PlatformFont> { |
public: |
+// The size of the font returned by CreateDefault() on a "default" platform |
+// configuration. This allows UI that wants to target a particular size of font |
+// to obtain that size for the majority of users, while still compensating for a |
+// user preference for a larger or smaller font. |
+#if defined(OS_MACOSX) |
+ static constexpr int kDefaultBaseFontSize = 13; |
+#else |
+ static constexpr int kDefaultBaseFontSize = 12; |
+#endif |
+ |
// Creates an appropriate PlatformFont implementation. |
static PlatformFont* CreateDefault(); |
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_IOS) |