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 "../../../include/fpdfapi/fpdf_module.h" | 7 #include "../../../include/fpdfapi/fpdf_module.h" |
8 #include "../../../include/fpdfapi/fpdf_page.h" | 8 #include "../../../include/fpdfapi/fpdf_page.h" |
9 #include "../../../include/fpdfapi/fpdf_pageobj.h" | 9 #include "../../../include/fpdfapi/fpdf_pageobj.h" |
10 #include "../../../include/fpdfapi/fpdf_resource.h" | 10 #include "../../../include/fpdfapi/fpdf_resource.h" |
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 return FALSE; | 1042 return FALSE; |
1043 } | 1043 } |
1044 if (FXFT_Get_Charmap_Encoding(FXFT_Get_Face_Charmaps(face)[0]) == | 1044 if (FXFT_Get_Charmap_Encoding(FXFT_Get_Face_Charmaps(face)[0]) == |
1045 FXFT_ENCODING_UNICODE) { | 1045 FXFT_ENCODING_UNICODE) { |
1046 FXFT_Set_Charmap(face, FXFT_Get_Face_Charmaps(face)[1]); | 1046 FXFT_Set_Charmap(face, FXFT_Get_Face_Charmaps(face)[1]); |
1047 } else { | 1047 } else { |
1048 FXFT_Set_Charmap(face, FXFT_Get_Face_Charmaps(face)[0]); | 1048 FXFT_Set_Charmap(face, FXFT_Get_Face_Charmaps(face)[0]); |
1049 } | 1049 } |
1050 return TRUE; | 1050 return TRUE; |
1051 } | 1051 } |
1052 extern FX_WCHAR FT_UnicodeFromCharCode(int encoding, FX_DWORD charcode); | |
1053 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 1052 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
1054 #include "../../fxge/apple/apple_int.h" | 1053 #include "../../fxge/apple/apple_int.h" |
1055 #endif | 1054 #endif |
1056 int CPDF_Type1Font::GlyphFromCharCodeExt(FX_DWORD charcode) { | 1055 int CPDF_Type1Font::GlyphFromCharCodeExt(FX_DWORD charcode) { |
1057 if (charcode > 0xff) { | 1056 if (charcode > 0xff) { |
1058 return -1; | 1057 return -1; |
1059 } | 1058 } |
1060 int index = m_ExtGID[(uint8_t)charcode]; | 1059 int index = m_ExtGID[(uint8_t)charcode]; |
1061 if (index == 0xffff) { | 1060 if (index == 0xffff) { |
1062 return -1; | 1061 return -1; |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1782 CPDF_Type3Char::CPDF_Type3Char() { | 1781 CPDF_Type3Char::CPDF_Type3Char() { |
1783 m_pForm = NULL; | 1782 m_pForm = NULL; |
1784 m_pBitmap = NULL; | 1783 m_pBitmap = NULL; |
1785 m_bPageRequired = FALSE; | 1784 m_bPageRequired = FALSE; |
1786 m_bColored = FALSE; | 1785 m_bColored = FALSE; |
1787 } | 1786 } |
1788 CPDF_Type3Char::~CPDF_Type3Char() { | 1787 CPDF_Type3Char::~CPDF_Type3Char() { |
1789 delete m_pForm; | 1788 delete m_pForm; |
1790 delete m_pBitmap; | 1789 delete m_pBitmap; |
1791 } | 1790 } |
OLD | NEW |