1 // Copyright 2020 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 #ifndef XFA_FGAS_FONT_CFGAS_GEMODULE_H_ 6 #define XFA_FGAS_FONT_CFGAS_GEMODULE_H_ 7 8 #include <memory> 9 10 class CFGAS_FontMgr; 11 12 class CFGAS_GEModule { 13 public: 14 static void Create(); 15 static void Destroy(); 16 static CFGAS_GEModule* Get(); 17 GetFontMgr()18 CFGAS_FontMgr* GetFontMgr() { return font_mgr_.get(); } 19 20 private: 21 CFGAS_GEModule(); 22 ~CFGAS_GEModule(); 23 24 std::unique_ptr<CFGAS_FontMgr> font_mgr_; 25 }; 26 27 #endif // XFA_FGAS_FONT_CFGAS_GEMODULE_H_ 28