| 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 #include "xfa/src/fgas/font/fgas_stdfontmgr.h" | 7 #include "xfa/fgas/font/fgas_stdfontmgr.h" |
| 8 | 8 |
| 9 #include "core/include/fxcrt/fx_stream.h" | 9 #include "core/include/fxcrt/fx_stream.h" |
| 10 #include "xfa/src/fgas/crt/fgas_codepage.h" | 10 #include "xfa/fgas/crt/fgas_codepage.h" |
| 11 #include "xfa/src/fgas/font/fgas_fontutils.h" | 11 #include "xfa/fgas/font/fgas_fontutils.h" |
| 12 | 12 |
| 13 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 13 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
| 14 IFX_FontMgr* IFX_FontMgr::Create(FX_LPEnumAllFonts pEnumerator, | 14 IFX_FontMgr* IFX_FontMgr::Create(FX_LPEnumAllFonts pEnumerator, |
| 15 FX_LPMatchFont pMatcher, | 15 FX_LPMatchFont pMatcher, |
| 16 void* pUserData) { | 16 void* pUserData) { |
| 17 return new CFX_StdFontMgrImp(pEnumerator, pMatcher, pUserData); | 17 return new CFX_StdFontMgrImp(pEnumerator, pMatcher, pUserData); |
| 18 } | 18 } |
| 19 CFX_StdFontMgrImp::CFX_StdFontMgrImp(FX_LPEnumAllFonts pEnumerator, | 19 CFX_StdFontMgrImp::CFX_StdFontMgrImp(FX_LPEnumAllFonts pEnumerator, |
| 20 FX_LPMatchFont pMatcher, | 20 FX_LPMatchFont pMatcher, |
| 21 void* pUserData) | 21 void* pUserData) |
| (...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1506 } | 1506 } |
| 1507 } | 1507 } |
| 1508 int32_t CFX_FontMgrImp::IsPartName(const CFX_WideString& Name1, | 1508 int32_t CFX_FontMgrImp::IsPartName(const CFX_WideString& Name1, |
| 1509 const CFX_WideString& Name2) { | 1509 const CFX_WideString& Name2) { |
| 1510 if (Name1.Find((const FX_WCHAR*)Name2) != -1) { | 1510 if (Name1.Find((const FX_WCHAR*)Name2) != -1) { |
| 1511 return 1; | 1511 return 1; |
| 1512 } | 1512 } |
| 1513 return 0; | 1513 return 0; |
| 1514 } | 1514 } |
| 1515 #endif | 1515 #endif |
| OLD | NEW |