1 // Copyright 2014 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 XFA_FXFA_CXFA_FONTMGR_H_
8 #define XFA_FXFA_CXFA_FONTMGR_H_
9 
10 #include <map>
11 
12 #include "core/fxcrt/fx_string.h"
13 
14 class CFGAS_GEFont;
15 class CXFA_FFDoc;
16 
17 class CXFA_FontMgr {
18  public:
19   CXFA_FontMgr();
20   ~CXFA_FontMgr();
21 
22   RetainPtr<CFGAS_GEFont> GetFont(CXFA_FFDoc* hDoc,
23                                   WideStringView wsFontFamily,
24                                   uint32_t dwFontStyles);
25 
26  private:
27   std::map<ByteString, RetainPtr<CFGAS_GEFont>> m_FontMap;
28 };
29 
30 #endif  //  XFA_FXFA_CXFA_FONTMGR_H_
31