| 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 "core/fxge/apple/apple_int.h" | 7 #include "core/fxge/apple/apple_int.h" |
| 8 #include "core/fxge/ge/cfx_folderfontinfo.h" | 8 #include "core/fxge/ge/cfx_folderfontinfo.h" |
| 9 #include "core/fxge/include/cfx_gemodule.h" | 9 #include "core/fxge/include/cfx_gemodule.h" |
| 10 #include "core/fxge/include/fx_ge.h" | |
| 11 #include "core/fxge/include/ifx_systemfontinfo.h" | 10 #include "core/fxge/include/ifx_systemfontinfo.h" |
| 12 | 11 |
| 13 #if _FX_OS_ == _FX_MACOSX_ | 12 #if _FX_OS_ == _FX_MACOSX_ |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 const struct { | 16 const struct { |
| 18 const FX_CHAR* m_pName; | 17 const FX_CHAR* m_pName; |
| 19 const FX_CHAR* m_pSubstName; | 18 const FX_CHAR* m_pSubstName; |
| 20 } g_Base14Substs[] = { | 19 } g_Base14Substs[] = { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 m_pPlatformData = new CApplePlatform; | 132 m_pPlatformData = new CApplePlatform; |
| 134 m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault(nullptr)); | 133 m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault(nullptr)); |
| 135 } | 134 } |
| 136 | 135 |
| 137 void CFX_GEModule::DestroyPlatform() { | 136 void CFX_GEModule::DestroyPlatform() { |
| 138 delete reinterpret_cast<CApplePlatform*>(m_pPlatformData); | 137 delete reinterpret_cast<CApplePlatform*>(m_pPlatformData); |
| 139 m_pPlatformData = nullptr; | 138 m_pPlatformData = nullptr; |
| 140 } | 139 } |
| 141 | 140 |
| 142 #endif // _FX_OS_ == _FX_MACOSX_ | 141 #endif // _FX_OS_ == _FX_MACOSX_ |
| OLD | NEW |