Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: core/fxge/ge/fx_ge_linux.cpp

Issue 2347313002: Remove duplicated charset definitions (Closed)
Patch Set: Nits Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fxge/ge/cfx_fontmapper.cpp ('k') | core/fxge/include/fx_font.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « core/fxge/ge/cfx_fontmapper.cpp ('k') | core/fxge/include/fx_font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698