| OLD | NEW |
| 1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 2015 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/fxcrt/include/fx_stream.h" | 9 #include "core/fxcrt/include/fx_stream.h" |
| 10 #include "core/fxge/include/cfx_fontmapper.h" | 10 #include "core/fxge/include/cfx_fontmapper.h" |
| 11 #include "core/fxge/include/cfx_fontmgr.h" | 11 #include "core/fxge/include/cfx_fontmgr.h" |
| 12 #include "core/fxge/include/cfx_gemodule.h" | 12 #include "core/fxge/include/cfx_gemodule.h" |
| 13 #include "core/fxge/include/ifx_systemfontinfo.h" | 13 #include "core/fxge/include/ifx_systemfontinfo.h" |
| 14 #include "core/fxge/include/fx_ge.h" | |
| 15 #include "xfa/fgas/crt/fgas_codepage.h" | 14 #include "xfa/fgas/crt/fgas_codepage.h" |
| 16 #include "xfa/fgas/font/fgas_fontutils.h" | 15 #include "xfa/fgas/font/fgas_fontutils.h" |
| 17 #include "xfa/fgas/font/fgas_gefont.h" | 16 #include "xfa/fgas/font/fgas_gefont.h" |
| 18 | 17 |
| 19 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 18 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
| 20 | 19 |
| 21 IFGAS_FontMgr* IFGAS_FontMgr::Create(FX_LPEnumAllFonts pEnumerator) { | 20 IFGAS_FontMgr* IFGAS_FontMgr::Create(FX_LPEnumAllFonts pEnumerator) { |
| 22 return new CFGAS_StdFontMgrImp(pEnumerator); | 21 return new CFGAS_StdFontMgrImp(pEnumerator); |
| 23 } | 22 } |
| 24 | 23 |
| (...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1392 | 1391 |
| 1393 int32_t CFGAS_FontMgrImp::IsPartName(const CFX_WideString& Name1, | 1392 int32_t CFGAS_FontMgrImp::IsPartName(const CFX_WideString& Name1, |
| 1394 const CFX_WideString& Name2) { | 1393 const CFX_WideString& Name2) { |
| 1395 if (Name1.Find(Name2.c_str()) != -1) { | 1394 if (Name1.Find(Name2.c_str()) != -1) { |
| 1396 return 1; | 1395 return 1; |
| 1397 } | 1396 } |
| 1398 return 0; | 1397 return 0; |
| 1399 } | 1398 } |
| 1400 | 1399 |
| 1401 #endif | 1400 #endif |
| OLD | NEW |