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

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

Issue 2443723002: Rename IFX_ stream names (Closed)
Patch Set: Nits Created 4 years, 1 month 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 | « xfa/fgas/font/fgas_gefont.h ('k') | xfa/fgas/font/fgas_stdfontmgr.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 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 <vector> 10 #include <vector>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 CFGAS_GEFont* LoadFont(const CFX_WideString& wsFaceName, 178 CFGAS_GEFont* LoadFont(const CFX_WideString& wsFaceName,
179 int32_t iFaceIndex, 179 int32_t iFaceIndex,
180 int32_t* pFaceCount); 180 int32_t* pFaceCount);
181 FX_BOOL EnumFonts(); 181 FX_BOOL EnumFonts();
182 FX_BOOL EnumFontsFromFontMapper(); 182 FX_BOOL EnumFontsFromFontMapper();
183 FX_BOOL EnumFontsFromFiles(); 183 FX_BOOL EnumFontsFromFiles();
184 184
185 protected: 185 protected:
186 void RegisterFace(FXFT_Face pFace, 186 void RegisterFace(FXFT_Face pFace,
187 const CFX_WideString* pFaceName); 187 const CFX_WideString* pFaceName);
188 void RegisterFaces(IFX_FileRead* pFontStream, 188 void RegisterFaces(IFX_SeekableReadStream* pFontStream,
189 const CFX_WideString* pFaceName); 189 const CFX_WideString* pFaceName);
190 void GetNames(const uint8_t* name_table, CFX_WideStringArray& Names); 190 void GetNames(const uint8_t* name_table, CFX_WideStringArray& Names);
191 std::vector<uint16_t> GetCharsets(FXFT_Face pFace) const; 191 std::vector<uint16_t> GetCharsets(FXFT_Face pFace) const;
192 void GetUSBCSB(FXFT_Face pFace, uint32_t* USB, uint32_t* CSB); 192 void GetUSBCSB(FXFT_Face pFace, uint32_t* USB, uint32_t* CSB);
193 uint32_t GetFlags(FXFT_Face pFace); 193 uint32_t GetFlags(FXFT_Face pFace);
194 FX_BOOL VerifyUnicode(CFX_FontDescriptor* pDesc, FX_WCHAR wcUnicode); 194 FX_BOOL VerifyUnicode(CFX_FontDescriptor* pDesc, FX_WCHAR wcUnicode);
195 FX_BOOL VerifyUnicode(CFGAS_GEFont* pFont, FX_WCHAR wcUnicode); 195 FX_BOOL VerifyUnicode(CFGAS_GEFont* pFont, FX_WCHAR wcUnicode);
196 int32_t IsPartName(const CFX_WideString& Name1, const CFX_WideString& Name2); 196 int32_t IsPartName(const CFX_WideString& Name1, const CFX_WideString& Name2);
197 int32_t MatchFonts(CFX_FontDescriptorInfos& MatchedFonts, 197 int32_t MatchFonts(CFX_FontDescriptorInfos& MatchedFonts,
198 uint16_t wCodePage, 198 uint16_t wCodePage,
199 uint32_t dwFontStyles, 199 uint32_t dwFontStyles,
200 const CFX_WideString& FontName, 200 const CFX_WideString& FontName,
201 FX_WCHAR wcUnicode = 0xFFFE); 201 FX_WCHAR wcUnicode = 0xFFFE);
202 int32_t CalcPenalty(CFX_FontDescriptor* pInstalled, 202 int32_t CalcPenalty(CFX_FontDescriptor* pInstalled,
203 uint16_t wCodePage, 203 uint16_t wCodePage,
204 uint32_t dwFontStyles, 204 uint32_t dwFontStyles,
205 const CFX_WideString& FontName, 205 const CFX_WideString& FontName,
206 FX_WCHAR wcUnicode = 0xFFFE); 206 FX_WCHAR wcUnicode = 0xFFFE);
207 FXFT_Face LoadFace(IFX_FileRead* pFontStream, int32_t iFaceIndex); 207 FXFT_Face LoadFace(IFX_SeekableReadStream* pFontStream, int32_t iFaceIndex);
208 IFX_FileRead* CreateFontStream(CFX_FontMapper* pFontMapper, 208 IFX_SeekableReadStream* CreateFontStream(CFX_FontMapper* pFontMapper,
209 IFX_SystemFontInfo* pSystemFontInfo, 209 IFX_SystemFontInfo* pSystemFontInfo,
210 uint32_t index); 210 uint32_t index);
211 IFX_FileRead* CreateFontStream(const CFX_ByteString& bsFaceName); 211 IFX_SeekableReadStream* CreateFontStream(const CFX_ByteString& bsFaceName);
212 212
213 CFX_FontDescriptors m_InstalledFonts; 213 CFX_FontDescriptors m_InstalledFonts;
214 CFX_MapPtrTemplate<uint32_t, CFX_FontDescriptorInfos*> m_Hash2CandidateList; 214 CFX_MapPtrTemplate<uint32_t, CFX_FontDescriptorInfos*> m_Hash2CandidateList;
215 CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<CFGAS_GEFont*>*> m_Hash2Fonts; 215 CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<CFGAS_GEFont*>*> m_Hash2Fonts;
216 CFX_MapPtrTemplate<CFGAS_GEFont*, IFX_FileRead*> m_IFXFont2FileRead; 216 CFX_MapPtrTemplate<CFGAS_GEFont*, IFX_SeekableReadStream*> m_IFXFont2FileRead;
217 CFX_MapPtrTemplate<FX_WCHAR, CFGAS_GEFont*> m_FailedUnicodes2Nullptr; 217 CFX_MapPtrTemplate<FX_WCHAR, CFGAS_GEFont*> m_FailedUnicodes2Nullptr;
218 CFX_FontSourceEnum_File* const m_pFontSource; 218 CFX_FontSourceEnum_File* const m_pFontSource;
219 }; 219 };
220 #endif 220 #endif
221 221
222 #endif // XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ 222 #endif // XFA_FGAS_FONT_FGAS_STDFONTMGR_H_
OLDNEW
« no previous file with comments | « xfa/fgas/font/fgas_gefont.h ('k') | xfa/fgas/font/fgas_stdfontmgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698