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/parser/cpdf_document.h" | 7 #include "core/fpdfapi/parser/cpdf_document.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "core/fpdfapi/cpdf_modulemgr.h" | 14 #include "core/fpdfapi/cpdf_modulemgr.h" |
15 #include "core/fpdfapi/font/cpdf_fontencoding.h" | 15 #include "core/fpdfapi/font/cpdf_fontencoding.h" |
16 #include "core/fpdfapi/page/cpdf_docpagedata.h" | 16 #include "core/fpdfapi/page/cpdf_docpagedata.h" |
17 #include "core/fpdfapi/page/cpdf_pagemodule.h" | 17 #include "core/fpdfapi/page/cpdf_pagemodule.h" |
18 #include "core/fpdfapi/page/pageint.h" | 18 #include "core/fpdfapi/page/pageint.h" |
19 #include "core/fpdfapi/parser/cpdf_array.h" | 19 #include "core/fpdfapi/parser/cpdf_array.h" |
20 #include "core/fpdfapi/parser/cpdf_dictionary.h" | 20 #include "core/fpdfapi/parser/cpdf_dictionary.h" |
21 #include "core/fpdfapi/parser/cpdf_linearized_header.h" | 21 #include "core/fpdfapi/parser/cpdf_linearized_header.h" |
22 #include "core/fpdfapi/parser/cpdf_name.h" | 22 #include "core/fpdfapi/parser/cpdf_name.h" |
23 #include "core/fpdfapi/parser/cpdf_number.h" | 23 #include "core/fpdfapi/parser/cpdf_number.h" |
24 #include "core/fpdfapi/parser/cpdf_parser.h" | 24 #include "core/fpdfapi/parser/cpdf_parser.h" |
25 #include "core/fpdfapi/parser/cpdf_reference.h" | 25 #include "core/fpdfapi/parser/cpdf_reference.h" |
| 26 #include "core/fpdfapi/parser/cpdf_stream.h" |
26 #include "core/fpdfapi/parser/cpdf_string.h" | 27 #include "core/fpdfapi/parser/cpdf_string.h" |
27 #include "core/fpdfapi/parser/cpdf_stream.h" | |
28 #include "core/fpdfapi/render/cpdf_docrenderdata.h" | 28 #include "core/fpdfapi/render/cpdf_docrenderdata.h" |
29 #include "core/fpdfapi/render/render_int.h" | 29 #include "core/fpdfapi/render/render_int.h" |
30 #include "core/fxcodec/JBig2_DocumentContext.h" | 30 #include "core/fxcodec/JBig2_DocumentContext.h" |
31 #include "core/fxge/cfx_unicodeencoding.h" | 31 #include "core/fxge/cfx_unicodeencoding.h" |
32 #include "core/fxge/fx_font.h" | 32 #include "core/fxge/fx_font.h" |
33 #include "third_party/base/ptr_util.h" | 33 #include "third_party/base/ptr_util.h" |
34 #include "third_party/base/stl_util.h" | 34 #include "third_party/base/stl_util.h" |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 pFontDesc->SetNewFor<CPDF_Number>("CapHeight", capheight); | 1043 pFontDesc->SetNewFor<CPDF_Number>("CapHeight", capheight); |
1044 pFontDict->SetNewFor<CPDF_Reference>( | 1044 pFontDict->SetNewFor<CPDF_Reference>( |
1045 "FontDescriptor", this, | 1045 "FontDescriptor", this, |
1046 AddIndirectObject(std::move(pFontDesc))->GetObjNum()); | 1046 AddIndirectObject(std::move(pFontDesc))->GetObjNum()); |
1047 hFont = SelectObject(hDC, hFont); | 1047 hFont = SelectObject(hDC, hFont); |
1048 DeleteObject(hFont); | 1048 DeleteObject(hFont); |
1049 DeleteDC(hDC); | 1049 DeleteDC(hDC); |
1050 return LoadFont(pBaseDict); | 1050 return LoadFont(pBaseDict); |
1051 } | 1051 } |
1052 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 1052 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
OLD | NEW |