| Index: ui/gfx/platform_font_mac.h
|
| diff --git a/ui/gfx/platform_font_mac.h b/ui/gfx/platform_font_mac.h
|
| index aa85f82cb97002f98e615f913e98938166863cac..d8f8e85c35dbbd371485a1f94783b1fec41ba822 100644
|
| --- a/ui/gfx/platform_font_mac.h
|
| +++ b/ui/gfx/platform_font_mac.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "base/compiler_specific.h"
|
| #include "base/mac/scoped_nsobject.h"
|
| +#include "ui/gfx/font_render_params.h"
|
| #include "ui/gfx/platform_font.h"
|
|
|
| namespace gfx {
|
| @@ -35,8 +36,8 @@ class PlatformFontMac : public PlatformFont {
|
| PlatformFontMac(const std::string& font_name, int font_size, int font_style);
|
| ~PlatformFontMac() override;
|
|
|
| - // Calculates and caches the font metrics.
|
| - void CalculateMetrics();
|
| + // Calculates and caches the font metrics and inits |render_params_|.
|
| + void CalculateMetricsAndInitRenderParams();
|
|
|
| // The NSFont instance for this object. If this object was constructed from an
|
| // NSFont instance, this holds that NSFont instance. Otherwise this NSFont
|
| @@ -56,6 +57,9 @@ class PlatformFontMac : public PlatformFont {
|
| int cap_height_;
|
| int average_width_;
|
|
|
| + // Details about how the font should be rendered.
|
| + FontRenderParams render_params_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(PlatformFontMac);
|
| };
|
|
|
|
|