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

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

Issue 1306883002: Added a fallback Win32 font information class for win32k lockdown. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fixed linux font regressions. 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/src/fxge/ge/fx_ge_fontmap.cpp » ('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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | core/src/fxge/ge/fx_ge_fontmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698