| 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 #ifndef _SKIA_SUPPORT_ | 7 #ifndef _SKIA_SUPPORT_ |
| 8 #include "core/fxge/agg/fx_agg_driver.h" | 8 #include "core/fxge/agg/fx_agg_driver.h" |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 case FXFONT_CHINESEBIG5_CHARSET: { | 117 case FXFONT_CHINESEBIG5_CHARSET: { |
| 118 for (size_t i = 0; i < FX_ArraySize(g_LinuxB5FontList); ++i) { | 118 for (size_t i = 0; i < FX_ArraySize(g_LinuxB5FontList); ++i) { |
| 119 auto it = m_FontList.find(g_LinuxB5FontList[i]); | 119 auto it = m_FontList.find(g_LinuxB5FontList[i]); |
| 120 if (it != m_FontList.end()) { | 120 if (it != m_FontList.end()) { |
| 121 return it->second; | 121 return it->second; |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 break; | 124 break; |
| 125 } | 125 } |
| 126 case FXFONT_HANGEUL_CHARSET: { | 126 case FXFONT_HANGUL_CHARSET: { |
| 127 for (size_t i = 0; i < FX_ArraySize(g_LinuxHGFontList); ++i) { | 127 for (size_t i = 0; i < FX_ArraySize(g_LinuxHGFontList); ++i) { |
| 128 auto it = m_FontList.find(g_LinuxHGFontList[i]); | 128 auto it = m_FontList.find(g_LinuxHGFontList[i]); |
| 129 if (it != m_FontList.end()) { | 129 if (it != m_FontList.end()) { |
| 130 return it->second; | 130 return it->second; |
| 131 } | 131 } |
| 132 } | 132 } |
| 133 break; | 133 break; |
| 134 } | 134 } |
| 135 default: | 135 default: |
| 136 bCJK = FALSE; | 136 bCJK = FALSE; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 160 return TRUE; | 160 return TRUE; |
| 161 } | 161 } |
| 162 | 162 |
| 163 void CFX_GEModule::InitPlatform() { | 163 void CFX_GEModule::InitPlatform() { |
| 164 m_pFontMgr->SetSystemFontInfo( | 164 m_pFontMgr->SetSystemFontInfo( |
| 165 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); | 165 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); |
| 166 } | 166 } |
| 167 | 167 |
| 168 void CFX_GEModule::DestroyPlatform() {} | 168 void CFX_GEModule::DestroyPlatform() {} |
| 169 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ | 169 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ |
| OLD | NEW |