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_FONT_CPDF_CIDFONT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_FONT_CPDF_CIDFONT_H_ |
8 #define CORE_FPDFAPI_FPDF_FONT_CPDF_CIDFONT_H_ | 8 #define CORE_FPDFAPI_FPDF_FONT_CPDF_CIDFONT_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
34 CPDF_CIDFont(); | 34 CPDF_CIDFont(); |
35 ~CPDF_CIDFont() override; | 35 ~CPDF_CIDFont() override; |
36 | 36 |
37 static FX_FLOAT CIDTransformToFloat(uint8_t ch); | 37 static FX_FLOAT CIDTransformToFloat(uint8_t ch); |
38 | 38 |
39 // CPDF_Font: | 39 // CPDF_Font: |
40 bool IsCIDFont() const override; | 40 bool IsCIDFont() const override; |
41 const CPDF_CIDFont* AsCIDFont() const override; | 41 const CPDF_CIDFont* AsCIDFont() const override; |
42 CPDF_CIDFont* AsCIDFont() override; | 42 CPDF_CIDFont* AsCIDFont() override; |
43 int GlyphFromCharCode(uint32_t charcode, FX_BOOL* pVertGlyph = NULL) override; | 43 int GlyphFromCharCode(uint32_t charcode, |
| 44 FX_BOOL* pVertGlyph = nullptr) override; |
44 int GetCharWidthF(uint32_t charcode, int level = 0) override; | 45 int GetCharWidthF(uint32_t charcode, int level = 0) override; |
45 FX_RECT GetCharBBox(uint32_t charcode, int level = 0) override; | 46 FX_RECT GetCharBBox(uint32_t charcode, int level = 0) override; |
46 uint32_t GetNextChar(const FX_CHAR* pString, | 47 uint32_t GetNextChar(const FX_CHAR* pString, |
47 int nStrLen, | 48 int nStrLen, |
48 int& offset) const override; | 49 int& offset) const override; |
49 int CountChar(const FX_CHAR* pString, int size) const override; | 50 int CountChar(const FX_CHAR* pString, int size) const override; |
50 int AppendChar(FX_CHAR* str, uint32_t charcode) const override; | 51 int AppendChar(FX_CHAR* str, uint32_t charcode) const override; |
51 int GetCharSize(uint32_t charcode) const override; | 52 int GetCharSize(uint32_t charcode) const override; |
52 FX_BOOL IsVertWriting() const override; | 53 FX_BOOL IsVertWriting() const override; |
53 FX_BOOL IsUnicodeCompatible() const override; | 54 FX_BOOL IsUnicodeCompatible() const override; |
(...skipping 28 matching lines...) Expand all Loading... |
82 FX_SMALL_RECT m_CharBBox[256]; | 83 FX_SMALL_RECT m_CharBBox[256]; |
83 CFX_ArrayTemplate<uint32_t> m_WidthList; | 84 CFX_ArrayTemplate<uint32_t> m_WidthList; |
84 short m_DefaultVY; | 85 short m_DefaultVY; |
85 short m_DefaultW1; | 86 short m_DefaultW1; |
86 CFX_ArrayTemplate<uint32_t> m_VertMetrics; | 87 CFX_ArrayTemplate<uint32_t> m_VertMetrics; |
87 FX_BOOL m_bAdobeCourierStd; | 88 FX_BOOL m_bAdobeCourierStd; |
88 std::unique_ptr<CFX_CTTGSUBTable> m_pTTGSUBTable; | 89 std::unique_ptr<CFX_CTTGSUBTable> m_pTTGSUBTable; |
89 }; | 90 }; |
90 | 91 |
91 #endif // CORE_FPDFAPI_FPDF_FONT_CPDF_CIDFONT_H_ | 92 #endif // CORE_FPDFAPI_FPDF_FONT_CPDF_CIDFONT_H_ |
OLD | NEW |