OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_TEXTSTATEDATA_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_TEXTSTATEDATA_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_TEXTSTATEDATA_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_TEXTSTATEDATA_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 bool SetTextRenderingModeFromInt(int iMode, TextRenderingMode* mode); | 27 bool SetTextRenderingModeFromInt(int iMode, TextRenderingMode* mode); |
28 bool TextRenderingModeIsClipMode(const TextRenderingMode& mode); | 28 bool TextRenderingModeIsClipMode(const TextRenderingMode& mode); |
29 bool TextRenderingModeIsStrokeMode(const TextRenderingMode& mode); | 29 bool TextRenderingModeIsStrokeMode(const TextRenderingMode& mode); |
30 | 30 |
31 class CPDF_TextStateData { | 31 class CPDF_TextStateData { |
32 public: | 32 public: |
33 CPDF_TextStateData(); | 33 CPDF_TextStateData(); |
34 CPDF_TextStateData(const CPDF_TextStateData& src); | 34 CPDF_TextStateData(const CPDF_TextStateData& src); |
35 ~CPDF_TextStateData(); | 35 ~CPDF_TextStateData(); |
36 | 36 |
37 void SetFont(CPDF_Font* pFont); | |
38 | |
39 CPDF_Font* GetFont() const { return m_pFont; } | |
40 FX_FLOAT GetFontSize() const { return m_FontSize; } | |
41 FX_FLOAT* GetMatrix() { return m_Matrix; } | |
42 const FX_FLOAT* GetMatrix() const { return m_Matrix; } | |
43 | |
44 FX_FLOAT GetFontSizeV() const; | |
45 FX_FLOAT GetFontSizeH() const; | |
46 FX_FLOAT GetBaselineAngle() const; | |
47 FX_FLOAT GetShearAngle() const; | |
48 | |
49 CPDF_Font* m_pFont; | 37 CPDF_Font* m_pFont; |
50 CPDF_Document* m_pDocument; | 38 CPDF_Document* m_pDocument; |
51 FX_FLOAT m_FontSize; | 39 FX_FLOAT m_FontSize; |
52 FX_FLOAT m_CharSpace; | 40 FX_FLOAT m_CharSpace; |
53 FX_FLOAT m_WordSpace; | 41 FX_FLOAT m_WordSpace; |
54 TextRenderingMode m_TextMode; | 42 TextRenderingMode m_TextMode; |
55 FX_FLOAT m_Matrix[4]; | 43 FX_FLOAT m_Matrix[4]; |
56 FX_FLOAT m_CTM[4]; | 44 FX_FLOAT m_CTM[4]; |
57 }; | 45 }; |
58 | 46 |
59 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_TEXTSTATEDATA_H_ | 47 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_TEXTSTATEDATA_H_ |
OLD | NEW |