• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 The PDFium Authors
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/retain_ptr.h"
11 #include "core/fxcrt/widestring.h"
12 
13 class CFGAS_GEFont;
14 
15 class CFGAS_DefaultFontManager {
16  public:
17   static RetainPtr<CFGAS_GEFont> GetFont(WideString wsFontName,
18                                          uint32_t dwFontStyles);
19   static RetainPtr<CFGAS_GEFont> GetDefaultFont(uint32_t dwFontStyles);
20 
21   CFGAS_DefaultFontManager() = delete;
22   CFGAS_DefaultFontManager(const CFGAS_DefaultFontManager&) = delete;
23   CFGAS_DefaultFontManager& operator=(const CFGAS_DefaultFontManager&) = delete;
24 };
25 
26 #endif  // XFA_FGAS_FONT_CFGAS_DEFAULTFONTMANAGER_H_
27