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 #ifndef FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_ | 7 #ifndef FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_ |
8 #define FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_ | 8 #define FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "core/fpdfdoc/ipvt_fontmap.h" | 12 #include "core/fpdfdoc/ipvt_fontmap.h" |
13 #include "core/fxge/include/fx_font.h" | 13 #include "core/fxge/fx_font.h" |
14 #include "fpdfsdk/fxedit/include/fx_edit.h" | 14 #include "fpdfsdk/fxedit/include/fx_edit.h" |
15 #include "public/fpdf_sysfontinfo.h" | 15 #include "public/fpdf_sysfontinfo.h" |
16 | 16 |
17 class CPDF_Document; | 17 class CPDF_Document; |
18 class CFX_SystemHandler; | 18 class CFX_SystemHandler; |
19 | 19 |
20 struct CPWL_FontMap_Data { | 20 struct CPWL_FontMap_Data { |
21 CPDF_Font* pFont; | 21 CPDF_Font* pFont; |
22 int32_t nCharset; | 22 int32_t nCharset; |
23 CFX_ByteString sFontName; | 23 CFX_ByteString sFontName; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 CPDF_Font* AddStandardFont(CPDF_Document* pDoc, CFX_ByteString& sFontName); | 85 CPDF_Font* AddStandardFont(CPDF_Document* pDoc, CFX_ByteString& sFontName); |
86 CPDF_Font* AddSystemFont(CPDF_Document* pDoc, | 86 CPDF_Font* AddSystemFont(CPDF_Document* pDoc, |
87 CFX_ByteString& sFontName, | 87 CFX_ByteString& sFontName, |
88 uint8_t nCharset); | 88 uint8_t nCharset); |
89 | 89 |
90 std::unique_ptr<CPDF_Document> m_pPDFDoc; | 90 std::unique_ptr<CPDF_Document> m_pPDFDoc; |
91 CFX_SystemHandler* const m_pSystemHandler; | 91 CFX_SystemHandler* const m_pSystemHandler; |
92 }; | 92 }; |
93 | 93 |
94 #endif // FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_ | 94 #endif // FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_ |
OLD | NEW |