Chromium Code Reviews| Index: Source/platform/fonts/FontDescription.h |
| diff --git a/Source/platform/fonts/FontDescription.h b/Source/platform/fonts/FontDescription.h |
| index 4a12367cdb11457652c846caa5cf31bacd3dea73..b4a6160af328571e0b91f3e1d55bc2a207cebf7a 100644 |
| --- a/Source/platform/fonts/FontDescription.h |
| +++ b/Source/platform/fonts/FontDescription.h |
| @@ -81,6 +81,7 @@ public: |
| , m_syntheticItalic(false) |
| , m_subpixelTextPosition(s_useSubpixelTextPositioning) |
| , m_typesettingFeatures(s_defaultTypesettingFeatures) |
| + , m_locale(String("en")) |
|
eae
2014/05/19 18:56:13
How about storing the hb_language_t instead of the
h.joshi
2014/05/20 04:22:14
Okey, will start working on this suggestion and sh
|
| { |
| } |
| @@ -116,6 +117,7 @@ public: |
| FontSmoothingMode fontSmoothing() const { return static_cast<FontSmoothingMode>(m_fontSmoothing); } |
| TextRenderingMode textRendering() const { return static_cast<TextRenderingMode>(m_textRendering); } |
| UScriptCode script() const { return static_cast<UScriptCode>(m_script); } |
| + const String& locale() const { return m_locale; } |
| bool isSyntheticBold() const { return m_syntheticBold; } |
| bool isSyntheticItalic() const { return m_syntheticItalic; } |
| bool useSubpixelPositioning() const { return m_subpixelTextPosition; } |
| @@ -154,6 +156,7 @@ public: |
| void setNonCJKGlyphOrientation(NonCJKGlyphOrientation orientation) { m_nonCJKGlyphOrientation = orientation; } |
| void setWidthVariant(FontWidthVariant widthVariant) { m_widthVariant = widthVariant; } |
| void setScript(UScriptCode s) { m_script = s; } |
| + void setLocale(const String& localeStr) { m_locale = localeStr; } |
| void setSyntheticBold(bool syntheticBold) { m_syntheticBold = syntheticBold; } |
| void setSyntheticItalic(bool syntheticItalic) { m_syntheticItalic = syntheticItalic; } |
| void setFeatureSettings(PassRefPtr<FontFeatureSettings> settings) { m_featureSettings = settings; } |
| @@ -219,6 +222,7 @@ private: |
| static TypesettingFeatures s_defaultTypesettingFeatures; |
| static bool s_useSubpixelTextPositioning; |
| + String m_locale; |
| }; |
| inline bool FontDescription::operator==(const FontDescription& other) const |