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

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

Issue 1368513002: Merge to XFA: Allow external font-path configuration from pdfium_test. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: 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.cpp ('k') | core/src/fxge/ge/fx_ge_linux.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 <limits> 7 #include <limits>
8 8
9 #include "../../../include/fxge/fx_ge.h" 9 #include "../../../include/fxge/fx_ge.h"
10 #include "../../../include/fxge/fx_freetype.h" 10 #include "../../../include/fxge/fx_freetype.h"
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 m_bItalic = FALSE; 1336 m_bItalic = FALSE;
1337 m_PitchFamily = 0; 1337 m_PitchFamily = 0;
1338 } 1338 }
1339 CFontFileFaceInfo::~CFontFileFaceInfo() { 1339 CFontFileFaceInfo::~CFontFileFaceInfo() {
1340 if (m_Face) { 1340 if (m_Face) {
1341 FXFT_Done_Face(m_Face); 1341 FXFT_Done_Face(m_Face);
1342 } 1342 }
1343 m_Face = NULL; 1343 m_Face = NULL;
1344 } 1344 }
1345 #if _FX_OS_ == _FX_ANDROID_ 1345 #if _FX_OS_ == _FX_ANDROID_
1346 IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault() { 1346 IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault(const char** pUnused) {
1347 return NULL; 1347 return NULL;
1348 } 1348 }
1349 #endif 1349 #endif
1350 CFX_FolderFontInfo::CFX_FolderFontInfo() {} 1350 CFX_FolderFontInfo::CFX_FolderFontInfo() {}
1351 CFX_FolderFontInfo::~CFX_FolderFontInfo() { 1351 CFX_FolderFontInfo::~CFX_FolderFontInfo() {
1352 for (const auto& pair : m_FontList) { 1352 for (const auto& pair : m_FontList) {
1353 delete pair.second; 1353 delete pair.second;
1354 } 1354 }
1355 } 1355 }
1356 void CFX_FolderFontInfo::AddPath(const CFX_ByteStringC& path) { 1356 void CFX_FolderFontInfo::AddPath(const CFX_ByteStringC& path) {
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1569 if (hFont == NULL) { 1569 if (hFont == NULL) {
1570 return FALSE; 1570 return FALSE;
1571 } 1571 }
1572 CFX_FontFaceInfo* pFont = (CFX_FontFaceInfo*)hFont; 1572 CFX_FontFaceInfo* pFont = (CFX_FontFaceInfo*)hFont;
1573 name = pFont->m_FaceName; 1573 name = pFont->m_FaceName;
1574 return TRUE; 1574 return TRUE;
1575 } 1575 }
1576 FX_BOOL CFX_FolderFontInfo::GetFontCharset(void* hFont, int& charset) { 1576 FX_BOOL CFX_FolderFontInfo::GetFontCharset(void* hFont, int& charset) {
1577 return FALSE; 1577 return FALSE;
1578 } 1578 }
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge.cpp ('k') | core/src/fxge/ge/fx_ge_linux.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698