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_INCLUDE_CPDF_FONT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ |
8 #define CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ | 8 #define CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 20 matching lines...) Expand all Loading... |
31 class CPDF_Document; | 31 class CPDF_Document; |
32 class CPDF_Object; | 32 class CPDF_Object; |
33 class CPDF_StreamAcc; | 33 class CPDF_StreamAcc; |
34 class CPDF_TrueTypeFont; | 34 class CPDF_TrueTypeFont; |
35 class CPDF_Type1Font; | 35 class CPDF_Type1Font; |
36 class CPDF_Type3Font; | 36 class CPDF_Type3Font; |
37 class CPDF_ToUnicodeMap; | 37 class CPDF_ToUnicodeMap; |
38 | 38 |
39 class CPDF_Font { | 39 class CPDF_Font { |
40 public: | 40 public: |
41 static CPDF_Font* CreateFontF(CPDF_Document* pDoc, | 41 static std::unique_ptr<CPDF_Font> Create(CPDF_Document* pDoc, |
42 CPDF_Dictionary* pFontDict); | 42 CPDF_Dictionary* pFontDict); |
43 static CPDF_Font* GetStockFont(CPDF_Document* pDoc, | 43 static CPDF_Font* GetStockFont(CPDF_Document* pDoc, |
44 const CFX_ByteStringC& fontname); | 44 const CFX_ByteStringC& fontname); |
45 static const uint32_t kInvalidCharCode = static_cast<uint32_t>(-1); | 45 static const uint32_t kInvalidCharCode = static_cast<uint32_t>(-1); |
46 | 46 |
47 virtual ~CPDF_Font(); | 47 virtual ~CPDF_Font(); |
48 | 48 |
49 virtual bool IsType1Font() const; | 49 virtual bool IsType1Font() const; |
50 virtual bool IsTrueTypeFont() const; | 50 virtual bool IsTrueTypeFont() const; |
51 virtual bool IsType3Font() const; | 51 virtual bool IsType3Font() const; |
52 virtual bool IsCIDFont() const; | 52 virtual bool IsCIDFont() const; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 mutable FX_BOOL m_bToUnicodeLoaded; | 124 mutable FX_BOOL m_bToUnicodeLoaded; |
125 int m_Flags; | 125 int m_Flags; |
126 FX_RECT m_FontBBox; | 126 FX_RECT m_FontBBox; |
127 int m_StemV; | 127 int m_StemV; |
128 int m_Ascent; | 128 int m_Ascent; |
129 int m_Descent; | 129 int m_Descent; |
130 int m_ItalicAngle; | 130 int m_ItalicAngle; |
131 }; | 131 }; |
132 | 132 |
133 #endif // CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ | 133 #endif // CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ |
OLD | NEW |