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/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/fxcrt/include/fx_stream.h" |
10 #include "xfa/fgas/crt/fgas_codepage.h" | 10 #include "xfa/fgas/crt/fgas_codepage.h" |
11 #include "xfa/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, |
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 } | 1507 } |
1508 } | 1508 } |
1509 int32_t CFX_FontMgrImp::IsPartName(const CFX_WideString& Name1, | 1509 int32_t CFX_FontMgrImp::IsPartName(const CFX_WideString& Name1, |
1510 const CFX_WideString& Name2) { | 1510 const CFX_WideString& Name2) { |
1511 if (Name1.Find((const FX_WCHAR*)Name2) != -1) { | 1511 if (Name1.Find((const FX_WCHAR*)Name2) != -1) { |
1512 return 1; | 1512 return 1; |
1513 } | 1513 } |
1514 return 0; | 1514 return 0; |
1515 } | 1515 } |
1516 #endif | 1516 #endif |
OLD | NEW |