summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/TextRun.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/TextRun.h')
-rw-r--r--WebCore/platform/graphics/TextRun.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/TextRun.h b/WebCore/platform/graphics/TextRun.h
index 03d7b9f..b5cd42a 100644
--- a/WebCore/platform/graphics/TextRun.h
+++ b/WebCore/platform/graphics/TextRun.h
@@ -39,6 +39,7 @@ public:
, m_len(len)
, m_xpos(xpos)
, m_padding(padding)
+ , m_glyphScale(1.0f)
, m_allowTabs(allowTabs)
, m_rtl(rtl)
, m_directionalOverride(directionalOverride)
@@ -58,6 +59,7 @@ public:
, m_len(s.length())
, m_xpos(xpos)
, m_padding(padding)
+ , m_glyphScale(1.0f)
, m_allowTabs(allowTabs)
, m_rtl(rtl)
, m_directionalOverride(directionalOverride)
@@ -79,6 +81,9 @@ public:
void setText(const UChar* c, int len) { m_characters = c; m_len = len; }
+ float glyphScale() const { return m_glyphScale; }
+ void setGlyphScale(float scale) { m_glyphScale = scale; }
+
bool allowTabs() const { return m_allowTabs; }
int xPos() const { return m_xpos; }
int padding() const { return m_padding; }
@@ -88,6 +93,7 @@ public:
bool applyRunRounding() const { return m_applyRunRounding; }
bool applyWordRounding() const { return m_applyWordRounding; }
bool spacingDisabled() const { return m_disableSpacing; }
+ bool applyGlyphScaling() const { return m_glyphScale != 1.0f; }
void disableSpacing() { m_disableSpacing = true; }
void disableRoundingHacks() { m_applyRunRounding = m_applyWordRounding = false; }
@@ -108,6 +114,7 @@ private:
int m_xpos;
int m_padding;
+ float m_glyphScale;
bool m_allowTabs;
bool m_rtl;
bool m_directionalOverride;