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/fpdf_parser/include/cpdf_document.h" | 7 #include "core/fpdfapi/fpdf_parser/include/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/fpdf_font/include/cpdf_fontencoding.h" | 13 #include "core/fpdfapi/fpdf_font/cpdf_fontencoding.h" |
14 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" | 14 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" |
15 #include "core/fpdfapi/fpdf_page/pageint.h" | 15 #include "core/fpdfapi/fpdf_page/pageint.h" |
16 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 16 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
17 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | 17 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" |
18 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h" | 18 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h" |
19 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h" | 19 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h" |
20 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" | 20 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" |
21 #include "core/fpdfapi/fpdf_render/render_int.h" | 21 #include "core/fpdfapi/fpdf_render/render_int.h" |
22 #include "core/fpdfapi/include/cpdf_modulemgr.h" | 22 #include "core/fpdfapi/include/cpdf_modulemgr.h" |
23 #include "core/fxcodec/include/JBig2_DocumentContext.h" | 23 #include "core/fxcodec/include/JBig2_DocumentContext.h" |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 pBBox, pLogFont->lfWeight / 5); | 1010 pBBox, pLogFont->lfWeight / 5); |
1011 pFontDesc->SetIntegerFor("CapHeight", capheight); | 1011 pFontDesc->SetIntegerFor("CapHeight", capheight); |
1012 pFontDict->SetReferenceFor("FontDescriptor", this, | 1012 pFontDict->SetReferenceFor("FontDescriptor", this, |
1013 AddIndirectObject(pFontDesc)); | 1013 AddIndirectObject(pFontDesc)); |
1014 hFont = SelectObject(hDC, hFont); | 1014 hFont = SelectObject(hDC, hFont); |
1015 DeleteObject(hFont); | 1015 DeleteObject(hFont); |
1016 DeleteDC(hDC); | 1016 DeleteDC(hDC); |
1017 return LoadFont(pBaseDict); | 1017 return LoadFont(pBaseDict); |
1018 } | 1018 } |
1019 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 1019 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
OLD | NEW |