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/src/fpdfapi/fpdf_font/font_int.h" | 7 #include "core/src/fpdfapi/fpdf_font/font_int.h" |
8 | 8 |
9 #include "core/src/fpdfapi/fpdf_page/pageint.h" | |
10 #include "core/include/fpdfapi/fpdf_module.h" | 9 #include "core/include/fpdfapi/fpdf_module.h" |
11 #include "core/include/fpdfapi/fpdf_page.h" | 10 #include "core/include/fpdfapi/fpdf_page.h" |
12 #include "core/include/fpdfapi/fpdf_pageobj.h" | 11 #include "core/include/fpdfapi/fpdf_pageobj.h" |
13 #include "core/include/fpdfapi/fpdf_resource.h" | 12 #include "core/include/fpdfapi/fpdf_resource.h" |
14 #include "core/include/fxcrt/fx_ext.h" | 13 #include "core/include/fxcrt/fx_ext.h" |
15 #include "core/include/fxge/fx_freetype.h" | 14 #include "core/include/fxge/fx_freetype.h" |
| 15 #include "core/src/fpdfapi/fpdf_page/pageint.h" |
16 #include "third_party/base/stl_util.h" | 16 #include "third_party/base/stl_util.h" |
17 | 17 |
18 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 18 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
19 #include "core/src/fxge/apple/apple_int.h" | 19 #include "core/src/fxge/apple/apple_int.h" |
20 #endif | 20 #endif |
21 | 21 |
22 FX_BOOL FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id) { | 22 FX_BOOL FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id) { |
23 for (int i = 0; i < FXFT_Get_Face_CharmapCount(face); i++) { | 23 for (int i = 0; i < FXFT_Get_Face_CharmapCount(face); i++) { |
24 if (FXFT_Get_Charmap_PlatformID(FXFT_Get_Face_Charmaps(face)[i]) == | 24 if (FXFT_Get_Charmap_PlatformID(FXFT_Get_Face_Charmaps(face)[i]) == |
25 platform_id && | 25 platform_id && |
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1736 rect = pChar->m_BBox; | 1736 rect = pChar->m_BBox; |
1737 } | 1737 } |
1738 | 1738 |
1739 CPDF_Type3Char::CPDF_Type3Char(CPDF_Form* pForm) | 1739 CPDF_Type3Char::CPDF_Type3Char(CPDF_Form* pForm) |
1740 : m_pForm(pForm), m_pBitmap(nullptr), m_bColored(FALSE) {} | 1740 : m_pForm(pForm), m_pBitmap(nullptr), m_bColored(FALSE) {} |
1741 | 1741 |
1742 CPDF_Type3Char::~CPDF_Type3Char() { | 1742 CPDF_Type3Char::~CPDF_Type3Char() { |
1743 delete m_pForm; | 1743 delete m_pForm; |
1744 delete m_pBitmap; | 1744 delete m_pBitmap; |
1745 } | 1745 } |
OLD | NEW |