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

Side by Side Diff: xfa/fgas/font/fgas_stdfontmgr.h

Issue 2018563002: Fix windows build breakage at 25fa42f398d1 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 6 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 | no next file » | 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 XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ 7 #ifndef XFA_FGAS_FONT_FGAS_STDFONTMGR_H_
8 #define XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ 8 #define XFA_FGAS_FONT_FGAS_STDFONTMGR_H_
9 9
10 #include "core/fxcrt/include/fx_ext.h" 10 #include "core/fxcrt/include/fx_ext.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 IFX_Font* LoadFont(const FX_WCHAR* pszFileName) override; 44 IFX_Font* LoadFont(const FX_WCHAR* pszFileName) override;
45 IFX_Font* LoadFont(IFX_Stream* pFontStream, 45 IFX_Font* LoadFont(IFX_Stream* pFontStream,
46 const FX_WCHAR* pszFontAlias = NULL, 46 const FX_WCHAR* pszFontAlias = NULL,
47 uint32_t dwFontStyles = 0, 47 uint32_t dwFontStyles = 0,
48 uint16_t wCodePage = 0, 48 uint16_t wCodePage = 0,
49 FX_BOOL bSaveStream = FALSE) override; 49 FX_BOOL bSaveStream = FALSE) override;
50 IFX_Font* LoadFont(IFX_Font* pSrcFont, 50 IFX_Font* LoadFont(IFX_Font* pSrcFont,
51 uint32_t dwFontStyles, 51 uint32_t dwFontStyles,
52 uint16_t wCodePage = 0xFFFF) override; 52 uint16_t wCodePage = 0xFFFF) override;
53 53
54 void ClearFontCache(); 54 void ClearFontCache() override;
55 void RemoveFont(IFX_Font* pFont); 55 void RemoveFont(IFX_Font* pFont) override;
56 56
57 protected: 57 protected:
58 void RemoveFont(CFX_MapPtrToPtr& fontMap, IFX_Font* pFont); 58 void RemoveFont(CFX_MapPtrToPtr& fontMap, IFX_Font* pFont);
59 FX_FONTDESCRIPTOR const* FindFont(const FX_WCHAR* pszFontFamily, 59 FX_FONTDESCRIPTOR const* FindFont(const FX_WCHAR* pszFontFamily,
60 uint32_t dwFontStyles, 60 uint32_t dwFontStyles,
61 uint32_t dwMatchFlags, 61 uint32_t dwMatchFlags,
62 uint16_t wCodePage, 62 uint16_t wCodePage,
63 uint32_t dwUSB = 999, 63 uint32_t dwUSB = 999,
64 FX_WCHAR wUnicode = 0); 64 FX_WCHAR wUnicode = 0);
65 IFX_Font* GetFont(FX_FONTDESCRIPTOR const* pFD, uint32_t dwFontStyles); 65 IFX_Font* GetFont(FX_FONTDESCRIPTOR const* pFD, uint32_t dwFontStyles);
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<IFX_Font*>*> m_Hash2Fonts; 235 CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<IFX_Font*>*> m_Hash2Fonts;
236 CFX_MapPtrTemplate<uint32_t, IFX_FileAccess*> m_Hash2FileAccess; 236 CFX_MapPtrTemplate<uint32_t, IFX_FileAccess*> m_Hash2FileAccess;
237 CFX_MapPtrTemplate<uint32_t, IFX_Font*> m_FileAccess2IFXFont; 237 CFX_MapPtrTemplate<uint32_t, IFX_Font*> m_FileAccess2IFXFont;
238 CFX_MapPtrTemplate<IFX_Font*, IFX_FileRead*> m_IFXFont2FileRead; 238 CFX_MapPtrTemplate<IFX_Font*, IFX_FileRead*> m_IFXFont2FileRead;
239 CFX_MapPtrTemplate<FX_WCHAR, IFX_Font*> m_FailedUnicodes2NULL; 239 CFX_MapPtrTemplate<FX_WCHAR, IFX_Font*> m_FailedUnicodes2NULL;
240 CFX_FontSourceEnum_File* const m_pFontSource; 240 CFX_FontSourceEnum_File* const m_pFontSource;
241 }; 241 };
242 #endif 242 #endif
243 243
244 #endif // XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ 244 #endif // XFA_FGAS_FONT_FGAS_STDFONTMGR_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698