| 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 "../../../include/fxge/fx_ge.h" | 7 #include "../../../include/fxge/fx_ge.h" |
| 8 #include "../agg/include/fx_agg_driver.h" | 8 #include "../agg/include/fx_agg_driver.h" |
| 9 #include "text_int.h" | 9 #include "text_int.h" |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 break; | 84 break; |
| 85 } | 85 } |
| 86 for (int32_t i = 0; i < LINUX_GPNAMESIZE; i++) { | 86 for (int32_t i = 0; i < LINUX_GPNAMESIZE; i++) { |
| 87 auto it = m_FontList.find(LinuxGpFontList[index].NameArr[i]); | 87 auto it = m_FontList.find(LinuxGpFontList[index].NameArr[i]); |
| 88 if (it != m_FontList.end()) { | 88 if (it != m_FontList.end()) { |
| 89 return it->second; | 89 return it->second; |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 } break; | 92 } break; |
| 93 case FXFONT_GB2312_CHARSET: { | 93 case FXFONT_GB2312_CHARSET: { |
| 94 for (int32_t i = 0; i < FX_ArraySize(g_LinuxGbFontList); ++i) { | 94 for (size_t i = 0; i < FX_ArraySize(g_LinuxGbFontList); ++i) { |
| 95 auto it = m_FontList.find(g_LinuxGbFontList[i]); | 95 auto it = m_FontList.find(g_LinuxGbFontList[i]); |
| 96 if (it != m_FontList.end()) { | 96 if (it != m_FontList.end()) { |
| 97 return it->second; | 97 return it->second; |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 } break; | 100 } break; |
| 101 case FXFONT_CHINESEBIG5_CHARSET: { | 101 case FXFONT_CHINESEBIG5_CHARSET: { |
| 102 for (int32_t i = 0; i < FX_ArraySize(g_LinuxB5FontList); ++i) { | 102 for (size_t i = 0; i < FX_ArraySize(g_LinuxB5FontList); ++i) { |
| 103 auto it = m_FontList.find(g_LinuxB5FontList[i]); | 103 auto it = m_FontList.find(g_LinuxB5FontList[i]); |
| 104 if (it != m_FontList.end()) { | 104 if (it != m_FontList.end()) { |
| 105 return it->second; | 105 return it->second; |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 } break; | 108 } break; |
| 109 case FXFONT_HANGEUL_CHARSET: { | 109 case FXFONT_HANGEUL_CHARSET: { |
| 110 for (int32_t i = 0; i < FX_ArraySize(g_LinuxHGFontList); ++i) { | 110 for (size_t i = 0; i < FX_ArraySize(g_LinuxHGFontList); ++i) { |
| 111 auto it = m_FontList.find(g_LinuxHGFontList[i]); | 111 auto it = m_FontList.find(g_LinuxHGFontList[i]); |
| 112 if (it != m_FontList.end()) { | 112 if (it != m_FontList.end()) { |
| 113 return it->second; | 113 return it->second; |
| 114 } | 114 } |
| 115 } | 115 } |
| 116 } break; | 116 } break; |
| 117 default: | 117 default: |
| 118 bCJK = FALSE; | 118 bCJK = FALSE; |
| 119 break; | 119 break; |
| 120 } | 120 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 138 AddPath(*pPath); | 138 AddPath(*pPath); |
| 139 } | 139 } |
| 140 return TRUE; | 140 return TRUE; |
| 141 } | 141 } |
| 142 void CFX_GEModule::InitPlatform() { | 142 void CFX_GEModule::InitPlatform() { |
| 143 m_pFontMgr->SetSystemFontInfo( | 143 m_pFontMgr->SetSystemFontInfo( |
| 144 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); | 144 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); |
| 145 } | 145 } |
| 146 void CFX_GEModule::DestroyPlatform() {} | 146 void CFX_GEModule::DestroyPlatform() {} |
| 147 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ | 147 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ |
| OLD | NEW |