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 <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 Loading... |
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 Loading... |
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 } |
OLD | NEW |