1 // Copyright 2017 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_FGAS_FONT_CFGAS_DEFAULTFONTMANAGER_H_
8 #define XFA_FGAS_FONT_CFGAS_DEFAULTFONTMANAGER_H_
9 
10 #include "core/fxcrt/fx_string.h"
11 #include "core/fxcrt/retain_ptr.h"
12 
13 class CFGAS_GEFont;
14 class CFGAS_FontMgr;
15 
16 class CFGAS_DefaultFontManager {
17  public:
18   static RetainPtr<CFGAS_GEFont> GetFont(CFGAS_FontMgr* pFontMgr,
19                                          WideStringView wsFontFamily,
20                                          uint32_t dwFontStyles);
21   static RetainPtr<CFGAS_GEFont> GetDefaultFont(CFGAS_FontMgr* pFontMgr,
22                                                 WideStringView wsFontFamily,
23                                                 uint32_t dwFontStyles);
24 
25   CFGAS_DefaultFontManager() = delete;
26   CFGAS_DefaultFontManager(const CFGAS_DefaultFontManager&) = delete;
27   CFGAS_DefaultFontManager& operator=(const CFGAS_DefaultFontManager&) = delete;
28 };
29 
30 #endif  // XFA_FGAS_FONT_CFGAS_DEFAULTFONTMANAGER_H_
31