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

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

Issue 801913002: Simplify PDFium by removing code that's not used in the open source repo. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years 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
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 "../../../include/fxge/fx_freetype.h" 8 #include "../../../include/fxge/fx_freetype.h"
9 #include "text_int.h" 9 #include "text_int.h"
10 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1]) 10 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1])
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 m_PitchFamily = 0; 1301 m_PitchFamily = 0;
1302 } 1302 }
1303 CFontFileFaceInfo::~CFontFileFaceInfo() 1303 CFontFileFaceInfo::~CFontFileFaceInfo()
1304 { 1304 {
1305 if (m_Face) { 1305 if (m_Face) {
1306 FXFT_Done_Face(m_Face); 1306 FXFT_Done_Face(m_Face);
1307 } 1307 }
1308 m_Face = NULL; 1308 m_Face = NULL;
1309 } 1309 }
1310 extern FX_BOOL _LoadFile(FXFT_Library library, FXFT_Face* Face, IFX_FileRead* pF ile, FXFT_Stream* stream); 1310 extern FX_BOOL _LoadFile(FXFT_Library library, FXFT_Face* Face, IFX_FileRead* pF ile, FXFT_Stream* stream);
1311 #if defined(_FPDFAPI_MINI_) || _FX_OS_ == _FX_ANDROID_ 1311 #if _FX_OS_ == _FX_ANDROID_
1312 IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault() 1312 IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault()
1313 { 1313 {
1314 return NULL; 1314 return NULL;
1315 } 1315 }
1316 #endif 1316 #endif
1317 #if !defined(_FPDFAPI_MINI_)
1318 CFX_FolderFontInfo::CFX_FolderFontInfo() 1317 CFX_FolderFontInfo::CFX_FolderFontInfo()
1319 { 1318 {
1320 } 1319 }
1321 CFX_FolderFontInfo::~CFX_FolderFontInfo() 1320 CFX_FolderFontInfo::~CFX_FolderFontInfo()
1322 { 1321 {
1323 FX_POSITION pos = m_FontList.GetStartPosition(); 1322 FX_POSITION pos = m_FontList.GetStartPosition();
1324 while (pos) { 1323 while (pos) {
1325 CFX_ByteString key; 1324 CFX_ByteString key;
1326 FX_LPVOID value; 1325 FX_LPVOID value;
1327 m_FontList.GetNextAssoc(pos, key, value); 1326 m_FontList.GetNextAssoc(pos, key, value);
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 return FALSE; 1539 return FALSE;
1541 } 1540 }
1542 CFontFaceInfo* pFont = (CFontFaceInfo*)hFont; 1541 CFontFaceInfo* pFont = (CFontFaceInfo*)hFont;
1543 name = pFont->m_FaceName; 1542 name = pFont->m_FaceName;
1544 return TRUE; 1543 return TRUE;
1545 } 1544 }
1546 FX_BOOL CFX_FolderFontInfo::GetFontCharset(void* hFont, int& charset) 1545 FX_BOOL CFX_FolderFontInfo::GetFontCharset(void* hFont, int& charset)
1547 { 1546 {
1548 return FALSE; 1547 return FALSE;
1549 } 1548 }
1550 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698