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/fpdfapi/font/font_int.h" | 7 #include "core/fpdfapi/font/font_int.h" |
8 | 8 |
9 #include "core/fpdfapi/cpdf_modulemgr.h" | 9 #include "core/fpdfapi/cpdf_modulemgr.h" |
10 #include "core/fpdfapi/fpdf_page/cpdf_form.h" | |
11 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" | |
12 #include "core/fpdfapi/fpdf_page/pageint.h" | |
13 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" | 10 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" |
14 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" | 11 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" |
15 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" | 12 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" |
16 #include "core/fpdfapi/fpdf_parser/cpdf_name.h" | 13 #include "core/fpdfapi/fpdf_parser/cpdf_name.h" |
17 #include "core/fpdfapi/fpdf_parser/cpdf_number.h" | 14 #include "core/fpdfapi/fpdf_parser/cpdf_number.h" |
18 #include "core/fpdfapi/fpdf_parser/cpdf_simple_parser.h" | 15 #include "core/fpdfapi/fpdf_parser/cpdf_simple_parser.h" |
19 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h" | 16 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h" |
| 17 #include "core/fpdfapi/page/cpdf_form.h" |
| 18 #include "core/fpdfapi/page/cpdf_pagemodule.h" |
| 19 #include "core/fpdfapi/page/pageint.h" |
20 #include "core/fxcrt/fx_ext.h" | 20 #include "core/fxcrt/fx_ext.h" |
21 #include "core/fxcrt/fx_safe_types.h" | 21 #include "core/fxcrt/fx_safe_types.h" |
22 #include "core/fxge/fx_freetype.h" | 22 #include "core/fxge/fx_freetype.h" |
23 #include "third_party/base/numerics/safe_conversions.h" | 23 #include "third_party/base/numerics/safe_conversions.h" |
24 #include "third_party/base/stl_util.h" | 24 #include "third_party/base/stl_util.h" |
25 | 25 |
26 int TT2PDF(int m, FXFT_Face face) { | 26 int TT2PDF(int m, FXFT_Face face) { |
27 int upm = FXFT_Get_Face_UnitsPerEM(face); | 27 int upm = FXFT_Get_Face_UnitsPerEM(face); |
28 if (upm == 0) | 28 if (upm == 0) |
29 return m; | 29 return m; |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 } | 308 } |
309 if (cid_set) { | 309 if (cid_set) { |
310 m_pBaseMap = CPDF_ModuleMgr::Get() | 310 m_pBaseMap = CPDF_ModuleMgr::Get() |
311 ->GetPageModule() | 311 ->GetPageModule() |
312 ->GetFontGlobals() | 312 ->GetFontGlobals() |
313 ->m_CMapManager.GetCID2UnicodeMap(cid_set, FALSE); | 313 ->m_CMapManager.GetCID2UnicodeMap(cid_set, FALSE); |
314 } else { | 314 } else { |
315 m_pBaseMap = nullptr; | 315 m_pBaseMap = nullptr; |
316 } | 316 } |
317 } | 317 } |
OLD | NEW |