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

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

Issue 1409223002: fxcrt convergence - XFA side. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: GN. Created 5 years, 2 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/src/fxge/ge/fx_ge_fontmap.cpp ('k') | core/src/fxge/skia/fx_skia_device.cpp » ('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 #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
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
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_
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge_fontmap.cpp ('k') | core/src/fxge/skia/fx_skia_device.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698