| 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 "core/fxge/cfx_fontmapper.h" | 7 #include "core/fxge/cfx_fontmapper.h" |
| 8 #include "core/fxge/ifx_systemfontinfo.h" | 8 #include "core/fxge/ifx_systemfontinfo.h" |
| 9 | 9 |
| 10 static CFX_ByteString GetStringFromTable(const uint8_t* string_ptr, | 10 static CFX_ByteString GetStringFromTable(const uint8_t* string_ptr, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 return GetStringFromTable(string_ptr, string_ptr_size, | 45 return GetStringFromTable(string_ptr, string_ptr_size, |
| 46 GET_TT_SHORT(name_table + 10), | 46 GET_TT_SHORT(name_table + 10), |
| 47 GET_TT_SHORT(name_table + 8)); | 47 GET_TT_SHORT(name_table + 8)); |
| 48 } | 48 } |
| 49 } | 49 } |
| 50 return CFX_ByteString(); | 50 return CFX_ByteString(); |
| 51 } | 51 } |
| 52 #ifdef PDF_ENABLE_XFA | 52 #ifdef PDF_ENABLE_XFA |
| 53 void* IFX_SystemFontInfo::MapFontByUnicode(uint32_t dwUnicode, | 53 void* IFX_SystemFontInfo::MapFontByUnicode(uint32_t dwUnicode, |
| 54 int weight, | 54 int weight, |
| 55 FX_BOOL bItalic, | 55 bool bItalic, |
| 56 int pitch_family) { | 56 int pitch_family) { |
| 57 return nullptr; | 57 return nullptr; |
| 58 } | 58 } |
| 59 #endif // PDF_ENABLE_XFA | 59 #endif // PDF_ENABLE_XFA |
| 60 | 60 |
| 61 int IFX_SystemFontInfo::GetFaceIndex(void* hFont) { | 61 int IFX_SystemFontInfo::GetFaceIndex(void* hFont) { |
| 62 return 0; | 62 return 0; |
| 63 } | 63 } |
| 64 | 64 |
| 65 extern "C" { | 65 extern "C" { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 82 CFX_ByteString fontTables, | 82 CFX_ByteString fontTables, |
| 83 uint32_t fontOffset, | 83 uint32_t fontOffset, |
| 84 uint32_t fileSize) | 84 uint32_t fileSize) |
| 85 : m_FilePath(filePath), | 85 : m_FilePath(filePath), |
| 86 m_FaceName(faceName), | 86 m_FaceName(faceName), |
| 87 m_FontTables(fontTables), | 87 m_FontTables(fontTables), |
| 88 m_FontOffset(fontOffset), | 88 m_FontOffset(fontOffset), |
| 89 m_FileSize(fileSize), | 89 m_FileSize(fileSize), |
| 90 m_Styles(0), | 90 m_Styles(0), |
| 91 m_Charsets(0) {} | 91 m_Charsets(0) {} |
| OLD | NEW |