diff options
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_textstate.h')
-rw-r--r-- | core/fpdfapi/fpdf_page/cpdf_textstate.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_textstate.h b/core/fpdfapi/fpdf_page/cpdf_textstate.h index cfb4b28a21..59c988de06 100644 --- a/core/fpdfapi/fpdf_page/cpdf_textstate.h +++ b/core/fpdfapi/fpdf_page/cpdf_textstate.h @@ -14,11 +14,13 @@ class CPDF_Font; class CPDF_TextState : public CFX_CountRef<CPDF_TextStateData> { public: - CPDF_Font* GetFont() const { return m_pObject->m_pFont; } + CPDF_Font* GetFont() const { return GetObject()->m_pFont; } void SetFont(CPDF_Font* pFont); - FX_FLOAT GetFontSize() const { return m_pObject->m_FontSize; } - FX_FLOAT* GetMatrix() const { return m_pObject->m_Matrix; } + FX_FLOAT GetFontSize() const { return GetObject()->m_FontSize; } + FX_FLOAT* GetMatrix() { return GetObject()->m_Matrix; } + const FX_FLOAT* GetMatrix() const { return GetObject()->m_Matrix; } + FX_FLOAT GetFontSizeV() const; FX_FLOAT GetFontSizeH() const; FX_FLOAT GetBaselineAngle() const; |