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_INCLUDE_FXGE_FX_FONT_H_ | 7 #ifndef CORE_INCLUDE_FXGE_FX_FONT_H_ |
8 #define CORE_INCLUDE_FXGE_FX_FONT_H_ | 8 #define CORE_INCLUDE_FXGE_FX_FONT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 m_pFontEnumerator = pFontEnumerator; | 250 m_pFontEnumerator = pFontEnumerator; |
251 } | 251 } |
252 IFX_FontEnumerator* GetFontEnumerator() const { return m_pFontEnumerator; } | 252 IFX_FontEnumerator* GetFontEnumerator() const { return m_pFontEnumerator; } |
253 FXFT_Face FindSubstFont(const CFX_ByteString& face_name, | 253 FXFT_Face FindSubstFont(const CFX_ByteString& face_name, |
254 FX_BOOL bTrueType, | 254 FX_BOOL bTrueType, |
255 FX_DWORD flags, | 255 FX_DWORD flags, |
256 int weight, | 256 int weight, |
257 int italic_angle, | 257 int italic_angle, |
258 int CharsetCP, | 258 int CharsetCP, |
259 CFX_SubstFont* pSubstFont); | 259 CFX_SubstFont* pSubstFont); |
| 260 FX_BOOL IsBuiltinFace(const FXFT_Face face) const; |
260 | 261 |
261 private: | 262 private: |
262 static const size_t MM_FACE_COUNT = 2; | 263 static const size_t MM_FACE_COUNT = 2; |
263 static const size_t FOXIT_FACE_COUNT = 14; | 264 static const size_t FOXIT_FACE_COUNT = 14; |
264 | 265 |
265 CFX_ByteString GetPSNameFromTT(void* hFont); | 266 CFX_ByteString GetPSNameFromTT(void* hFont); |
266 CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name); | 267 CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name); |
267 FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont, | 268 FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont, |
268 int iBaseFont, | 269 int iBaseFont, |
269 int italic_angle, | 270 int italic_angle, |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 449 |
449 protected: | 450 protected: |
450 virtual ~IFX_GSUBTable() {} | 451 virtual ~IFX_GSUBTable() {} |
451 }; | 452 }; |
452 | 453 |
453 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); | 454 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); |
454 | 455 |
455 int PDF_GetStandardFontName(CFX_ByteString* name); | 456 int PDF_GetStandardFontName(CFX_ByteString* name); |
456 | 457 |
457 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ | 458 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ |
OLD | NEW |