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 "font_int.h" |
8 #include "../../../include/fpdfapi/fpdf_page.h" | 8 |
9 #include "../../../include/fpdfapi/fpdf_pageobj.h" | |
10 #include "../../../include/fpdfapi/fpdf_resource.h" | |
11 #include "../../../include/fxge/fx_freetype.h" | |
12 #include "../fpdf_page/pageint.h" | 9 #include "../fpdf_page/pageint.h" |
13 #include "font_int.h" | 10 #include "core/include/fpdfapi/fpdf_module.h" |
| 11 #include "core/include/fpdfapi/fpdf_page.h" |
| 12 #include "core/include/fpdfapi/fpdf_pageobj.h" |
| 13 #include "core/include/fpdfapi/fpdf_resource.h" |
| 14 #include "core/include/fxge/fx_freetype.h" |
14 | 15 |
15 FX_BOOL FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id) { | 16 FX_BOOL FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id) { |
16 for (int i = 0; i < FXFT_Get_Face_CharmapCount(face); i++) { | 17 for (int i = 0; i < FXFT_Get_Face_CharmapCount(face); i++) { |
17 if (FXFT_Get_Charmap_PlatformID(FXFT_Get_Face_Charmaps(face)[i]) == | 18 if (FXFT_Get_Charmap_PlatformID(FXFT_Get_Face_Charmaps(face)[i]) == |
18 platform_id && | 19 platform_id && |
19 FXFT_Get_Charmap_EncodingID(FXFT_Get_Face_Charmaps(face)[i]) == | 20 FXFT_Get_Charmap_EncodingID(FXFT_Get_Face_Charmaps(face)[i]) == |
20 encoding_id) { | 21 encoding_id) { |
21 FXFT_Set_Charmap(face, FXFT_Get_Face_Charmaps(face)[i]); | 22 FXFT_Set_Charmap(face, FXFT_Get_Face_Charmaps(face)[i]); |
22 return TRUE; | 23 return TRUE; |
23 } | 24 } |
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1787 rect = pChar->m_BBox; | 1788 rect = pChar->m_BBox; |
1788 } | 1789 } |
1789 | 1790 |
1790 CPDF_Type3Char::CPDF_Type3Char(CPDF_Form* pForm) | 1791 CPDF_Type3Char::CPDF_Type3Char(CPDF_Form* pForm) |
1791 : m_pForm(pForm), m_pBitmap(nullptr), m_bColored(FALSE) {} | 1792 : m_pForm(pForm), m_pBitmap(nullptr), m_bColored(FALSE) {} |
1792 | 1793 |
1793 CPDF_Type3Char::~CPDF_Type3Char() { | 1794 CPDF_Type3Char::~CPDF_Type3Char() { |
1794 delete m_pForm; | 1795 delete m_pForm; |
1795 delete m_pBitmap; | 1796 delete m_pBitmap; |
1796 } | 1797 } |
OLD | NEW |