| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 protected: | 331 protected: |
| 332 std::map<CFX_ByteString, CFX_FontFaceInfo*> m_FontList; | 332 std::map<CFX_ByteString, CFX_FontFaceInfo*> m_FontList; |
| 333 CFX_ByteStringArray m_PathList; | 333 CFX_ByteStringArray m_PathList; |
| 334 CFX_FontMapper* m_pMapper; | 334 CFX_FontMapper* m_pMapper; |
| 335 void ScanPath(CFX_ByteString& path); | 335 void ScanPath(CFX_ByteString& path); |
| 336 void ScanFile(CFX_ByteString& path); | 336 void ScanFile(CFX_ByteString& path); |
| 337 void ReportFace(CFX_ByteString& path, | 337 void ReportFace(CFX_ByteString& path, |
| 338 FXSYS_FILE* pFile, | 338 FXSYS_FILE* pFile, |
| 339 FX_DWORD filesize, | 339 FX_DWORD filesize, |
| 340 FX_DWORD offset); | 340 FX_DWORD offset); |
| 341 void* GetSubstFont(const CFX_ByteString& face); |
| 342 void* FindFont(int weight, |
| 343 FX_BOOL bItalic, |
| 344 int charset, |
| 345 int pitch_family, |
| 346 const FX_CHAR* family, |
| 347 FX_BOOL bMatchName); |
| 341 }; | 348 }; |
| 342 class CFX_CountedFaceCache { | 349 class CFX_CountedFaceCache { |
| 343 public: | 350 public: |
| 344 CFX_FaceCache* m_Obj; | 351 CFX_FaceCache* m_Obj; |
| 345 FX_DWORD m_nCount; | 352 FX_DWORD m_nCount; |
| 346 }; | 353 }; |
| 347 | 354 |
| 348 class CFX_FontCache { | 355 class CFX_FontCache { |
| 349 public: | 356 public: |
| 350 ~CFX_FontCache(); | 357 ~CFX_FontCache(); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 static IFX_GSUBTable* Create(CFX_Font* pFont); | 439 static IFX_GSUBTable* Create(CFX_Font* pFont); |
| 433 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0; | 440 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0; |
| 434 | 441 |
| 435 protected: | 442 protected: |
| 436 virtual ~IFX_GSUBTable() {} | 443 virtual ~IFX_GSUBTable() {} |
| 437 }; | 444 }; |
| 438 | 445 |
| 439 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); | 446 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); |
| 440 | 447 |
| 441 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ | 448 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ |
| OLD | NEW |