| 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 <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "core/fpdfapi/cpdf_modulemgr.h" | 13 #include "core/fpdfapi/cpdf_modulemgr.h" |
| 14 #include "core/fpdfapi/font/cpdf_fontencoding.h" | 14 #include "core/fpdfapi/font/cpdf_fontencoding.h" |
| 15 #include "core/fpdfapi/page/cpdf_docpagedata.h" | 15 #include "core/fpdfapi/page/cpdf_docpagedata.h" |
| 16 #include "core/fpdfapi/page/cpdf_pagemodule.h" | 16 #include "core/fpdfapi/page/cpdf_pagemodule.h" |
| 17 #include "core/fpdfapi/page/pageint.h" | 17 #include "core/fpdfapi/page/pageint.h" |
| 18 #include "core/fpdfapi/parser/cpdf_array.h" | 18 #include "core/fpdfapi/parser/cpdf_array.h" |
| 19 #include "core/fpdfapi/parser/cpdf_dictionary.h" | 19 #include "core/fpdfapi/parser/cpdf_dictionary.h" |
| 20 #include "core/fpdfapi/parser/cpdf_linearized_header.h" | 20 #include "core/fpdfapi/parser/cpdf_linearized_header.h" |
| 21 #include "core/fpdfapi/parser/cpdf_name.h" | 21 #include "core/fpdfapi/parser/cpdf_name.h" |
| 22 #include "core/fpdfapi/parser/cpdf_number.h" | 22 #include "core/fpdfapi/parser/cpdf_number.h" |
| 23 #include "core/fpdfapi/parser/cpdf_parser.h" | 23 #include "core/fpdfapi/parser/cpdf_parser.h" |
| 24 #include "core/fpdfapi/parser/cpdf_reference.h" | 24 #include "core/fpdfapi/parser/cpdf_reference.h" |
| 25 #include "core/fpdfapi/parser/cpdf_stream.h" | 25 #include "core/fpdfapi/parser/cpdf_stream.h" |
| 26 #include "core/fpdfapi/render/cpdf_docrenderdata.h" |
| 26 #include "core/fpdfapi/render/render_int.h" | 27 #include "core/fpdfapi/render/render_int.h" |
| 27 #include "core/fxcodec/JBig2_DocumentContext.h" | 28 #include "core/fxcodec/JBig2_DocumentContext.h" |
| 28 #include "core/fxge/cfx_unicodeencoding.h" | 29 #include "core/fxge/cfx_unicodeencoding.h" |
| 29 #include "core/fxge/fx_font.h" | 30 #include "core/fxge/fx_font.h" |
| 30 #include "third_party/base/ptr_util.h" | 31 #include "third_party/base/ptr_util.h" |
| 31 #include "third_party/base/stl_util.h" | 32 #include "third_party/base/stl_util.h" |
| 32 | 33 |
| 33 namespace { | 34 namespace { |
| 34 | 35 |
| 35 const int FX_MAX_PAGE_LEVEL = 1024; | 36 const int FX_MAX_PAGE_LEVEL = 1024; |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 pBBox, pLogFont->lfWeight / 5); | 1039 pBBox, pLogFont->lfWeight / 5); |
| 1039 pFontDesc->SetIntegerFor("CapHeight", capheight); | 1040 pFontDesc->SetIntegerFor("CapHeight", capheight); |
| 1040 pFontDict->SetReferenceFor("FontDescriptor", this, | 1041 pFontDict->SetReferenceFor("FontDescriptor", this, |
| 1041 AddIndirectObject(std::move(pFontDesc))); | 1042 AddIndirectObject(std::move(pFontDesc))); |
| 1042 hFont = SelectObject(hDC, hFont); | 1043 hFont = SelectObject(hDC, hFont); |
| 1043 DeleteObject(hFont); | 1044 DeleteObject(hFont); |
| 1044 DeleteDC(hDC); | 1045 DeleteDC(hDC); |
| 1045 return LoadFont(pBaseDict); | 1046 return LoadFont(pBaseDict); |
| 1046 } | 1047 } |
| 1047 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 1048 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
| OLD | NEW |