| Index: Source/platform/fonts/FontDescription.h
|
| diff --git a/Source/platform/fonts/FontDescription.h b/Source/platform/fonts/FontDescription.h
|
| index 9cefae0436a002fe2cde08e1388cad87c6c91946..6c1e239292e4e811e86a2c3897890ab6c39faabc 100644
|
| --- a/Source/platform/fonts/FontDescription.h
|
| +++ b/Source/platform/fonts/FontDescription.h
|
| @@ -26,6 +26,7 @@
|
| #define FontDescription_h
|
|
|
| #include "platform/FontFamilyNames.h"
|
| +#include "platform/fonts/FixedPitchFontType.h"
|
| #include "platform/fonts/FontCacheKey.h"
|
| #include "platform/fonts/FontFamily.h"
|
| #include "platform/fonts/FontFeatureSettings.h"
|
| @@ -102,7 +103,12 @@ public:
|
| GenericFamilyType genericFamily() const { return static_cast<GenericFamilyType>(m_genericFamily); }
|
|
|
| // only use fixed default size when there is only one font family, and that family is "monospace"
|
| - bool useFixedDefaultSize() const { return genericFamily() == MonospaceFamily && !family().next() && family().family() == FontFamilyNames::webkit_monospace; }
|
| + FixedPitchFontType fixedPitchFontType() const
|
| + {
|
| + if (genericFamily() == MonospaceFamily && !family().next() && family().family() == FontFamilyNames::webkit_monospace)
|
| + return FixedPitchFont;
|
| + return NonFixedPitchFont;
|
| + }
|
| Kerning kerning() const { return static_cast<Kerning>(m_kerning); }
|
| LigaturesState commonLigaturesState() const { return static_cast<LigaturesState>(m_commonLigaturesState); }
|
| LigaturesState discretionaryLigaturesState() const { return static_cast<LigaturesState>(m_discretionaryLigaturesState); }
|
|
|