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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 int italic_angle, | 318 int italic_angle, |
319 int CharsetCP, | 319 int CharsetCP, |
320 CFX_SubstFont* pSubstFont); | 320 CFX_SubstFont* pSubstFont); |
321 #ifdef PDF_ENABLE_XFA | 321 #ifdef PDF_ENABLE_XFA |
322 FXFT_Face FindSubstFontByUnicode(FX_DWORD dwUnicode, | 322 FXFT_Face FindSubstFontByUnicode(FX_DWORD dwUnicode, |
323 FX_DWORD flags, | 323 FX_DWORD flags, |
324 int weight, | 324 int weight, |
325 int italic_angle); | 325 int italic_angle); |
326 #endif // PDF_ENABLE_XFA | 326 #endif // PDF_ENABLE_XFA |
327 FX_BOOL IsBuiltinFace(const FXFT_Face face) const; | 327 FX_BOOL IsBuiltinFace(const FXFT_Face face) const; |
| 328 int GetFaceSize() const { return m_FaceArray.GetSize(); } |
| 329 CFX_ByteString GetFaceName(int index) const { return m_FaceArray[index]; } |
328 | 330 |
329 private: | 331 private: |
330 static const size_t MM_FACE_COUNT = 2; | 332 static const size_t MM_FACE_COUNT = 2; |
331 static const size_t FOXIT_FACE_COUNT = 14; | 333 static const size_t FOXIT_FACE_COUNT = 14; |
332 | 334 |
333 CFX_ByteString GetPSNameFromTT(void* hFont); | 335 CFX_ByteString GetPSNameFromTT(void* hFont); |
334 CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name); | 336 CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name); |
335 FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont, | 337 FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont, |
336 int iBaseFont, | 338 int iBaseFont, |
337 int italic_angle, | 339 int italic_angle, |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 532 |
531 protected: | 533 protected: |
532 virtual ~IFX_GSUBTable() {} | 534 virtual ~IFX_GSUBTable() {} |
533 }; | 535 }; |
534 | 536 |
535 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); | 537 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); |
536 | 538 |
537 int PDF_GetStandardFontName(CFX_ByteString* name); | 539 int PDF_GetStandardFontName(CFX_ByteString* name); |
538 | 540 |
539 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ | 541 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ |
OLD | NEW |