OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_FXGE_FX_FONT_H_ | 7 #ifndef CORE_FXGE_FX_FONT_H_ |
8 #define CORE_FXGE_FX_FONT_H_ | 8 #define CORE_FXGE_FX_FONT_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 int weight, | 104 int weight, |
105 int italic_angle, | 105 int italic_angle, |
106 int CharsetCP, | 106 int CharsetCP, |
107 bool bVertical); | 107 bool bVertical); |
108 | 108 |
109 bool LoadEmbedded(const uint8_t* data, uint32_t size); | 109 bool LoadEmbedded(const uint8_t* data, uint32_t size); |
110 FXFT_Face GetFace() const { return m_Face; } | 110 FXFT_Face GetFace() const { return m_Face; } |
111 CFX_SubstFont* GetSubstFont() const { return m_pSubstFont.get(); } | 111 CFX_SubstFont* GetSubstFont() const { return m_pSubstFont.get(); } |
112 | 112 |
113 #ifdef PDF_ENABLE_XFA | 113 #ifdef PDF_ENABLE_XFA |
114 bool LoadFile(IFX_SeekableReadStream* pFile, | 114 bool LoadFile(const CFX_RetainPtr<IFX_SeekableReadStream>& pFile, |
115 int nFaceIndex = 0, | 115 int nFaceIndex = 0, |
116 int* pFaceCount = nullptr); | 116 int* pFaceCount = nullptr); |
117 | 117 |
118 bool LoadClone(const CFX_Font* pFont); | 118 bool LoadClone(const CFX_Font* pFont); |
119 void SetFace(FXFT_Face face); | 119 void SetFace(FXFT_Face face); |
120 void SetSubstFont(std::unique_ptr<CFX_SubstFont> subst) { | 120 void SetSubstFont(std::unique_ptr<CFX_SubstFont> subst) { |
121 m_pSubstFont = std::move(subst); | 121 m_pSubstFont = std::move(subst); |
122 } | 122 } |
123 #endif // PDF_ENABLE_XFA | 123 #endif // PDF_ENABLE_XFA |
124 | 124 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 FX_FLOAT retinaScaleX = 1.0f, | 241 FX_FLOAT retinaScaleX = 1.0f, |
242 FX_FLOAT retinaScaleY = 1.0f); | 242 FX_FLOAT retinaScaleY = 1.0f); |
243 | 243 |
244 CFX_ByteString GetNameFromTT(const uint8_t* name_table, | 244 CFX_ByteString GetNameFromTT(const uint8_t* name_table, |
245 uint32_t name_table_size, | 245 uint32_t name_table_size, |
246 uint32_t name); | 246 uint32_t name); |
247 | 247 |
248 int PDF_GetStandardFontName(CFX_ByteString* name); | 248 int PDF_GetStandardFontName(CFX_ByteString* name); |
249 | 249 |
250 #endif // CORE_FXGE_FX_FONT_H_ | 250 #endif // CORE_FXGE_FX_FONT_H_ |
OLD | NEW |