Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: core/include/fxge/fx_font.h

Issue 1368513002: Merge to XFA: Allow external font-path configuration from pdfium_test. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | core/include/fxge/fx_ge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 CFX_DWordArray m_CharsetArray; 342 CFX_DWordArray m_CharsetArray;
343 CFX_ByteStringArray m_FaceArray; 343 CFX_ByteStringArray m_FaceArray;
344 IFX_SystemFontInfo* m_pFontInfo; 344 IFX_SystemFontInfo* m_pFontInfo;
345 FXFT_Face m_FoxitFaces[FOXIT_FACE_COUNT]; 345 FXFT_Face m_FoxitFaces[FOXIT_FACE_COUNT];
346 IFX_FontEnumerator* m_pFontEnumerator; 346 IFX_FontEnumerator* m_pFontEnumerator;
347 CFX_FontMgr* const m_pFontMgr; 347 CFX_FontMgr* const m_pFontMgr;
348 }; 348 };
349 349
350 class IFX_SystemFontInfo { 350 class IFX_SystemFontInfo {
351 public: 351 public:
352 static IFX_SystemFontInfo* CreateDefault(); 352 static IFX_SystemFontInfo* CreateDefault(const char** pUserPaths);
353 virtual void Release() = 0; 353 virtual void Release() = 0;
354 354
355 virtual FX_BOOL EnumFontList(CFX_FontMapper* pMapper) = 0; 355 virtual FX_BOOL EnumFontList(CFX_FontMapper* pMapper) = 0;
356 virtual void* MapFont(int weight, 356 virtual void* MapFont(int weight,
357 FX_BOOL bItalic, 357 FX_BOOL bItalic,
358 int charset, 358 int charset,
359 int pitch_family, 359 int pitch_family,
360 const FX_CHAR* face, 360 const FX_CHAR* face,
361 int& iExact) = 0; 361 int& iExact) = 0;
362 virtual void* MapFontByUnicode(FX_DWORD dwUnicode, 362 virtual void* MapFontByUnicode(FX_DWORD dwUnicode,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 static IFX_GSUBTable* Create(CFX_Font* pFont); 513 static IFX_GSUBTable* Create(CFX_Font* pFont);
514 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0; 514 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0;
515 515
516 protected: 516 protected:
517 virtual ~IFX_GSUBTable() {} 517 virtual ~IFX_GSUBTable() {}
518 }; 518 };
519 519
520 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); 520 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name);
521 521
522 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ 522 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_
OLDNEW
« no previous file with comments | « no previous file | core/include/fxge/fx_ge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698