Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: core/fpdfdoc/cpvt_fontmap.h

Issue 1840413002: Split core/include/fpdfdoc/fpdf_ap.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fpdfdoc/cpvt_dash.h ('k') | core/fpdfdoc/cpvt_fontmap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef CORE_FPDFDOC_CPVT_FONTMAP_H_
8 #define CORE_FPDFDOC_CPVT_FONTMAP_H_
9
10 #include <stdint.h>
11
12 #include "core/fpdfdoc/ipvt_fontmap.h"
13 #include "core/fxcrt/include/fx_string.h"
14
15 class CPDF_Document;
16 class CPDF_Dictionary;
17 class CPDF_Font;
18
19 class CPVT_FontMap : public IPVT_FontMap {
20 public:
21 CPVT_FontMap(CPDF_Document* pDoc,
22 CPDF_Dictionary* pResDict,
23 CPDF_Font* pDefFont,
24 const CFX_ByteString& sDefFontAlias);
25 ~CPVT_FontMap() override;
26
27 // IPVT_FontMap:
28 CPDF_Font* GetPDFFont(int32_t nFontIndex) override;
29 CFX_ByteString GetPDFFontAlias(int32_t nFontIndex) override;
30
31 static void GetAnnotSysPDFFont(CPDF_Document* pDoc,
32 const CPDF_Dictionary* pResDict,
33 CPDF_Font*& pSysFont,
34 CFX_ByteString& sSysFontAlias);
35
36 private:
37 CPDF_Document* const m_pDocument;
38 const CPDF_Dictionary* const m_pResDict;
39 CPDF_Font* const m_pDefFont;
40 const CFX_ByteString m_sDefFontAlias;
41 CPDF_Font* m_pSysFont;
42 CFX_ByteString m_sSysFontAlias;
43 };
44
45 #endif // CORE_FPDFDOC_CPVT_FONTMAP_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpvt_dash.h ('k') | core/fpdfdoc/cpvt_fontmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698