blob: f48d0655612f332c967260bcea160ed263369c84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef CORE_FXGE_CFX_GEMODULE_H_
#define CORE_FXGE_CFX_GEMODULE_H_
#include <memory>
class CFX_FontCache;
class CFX_FontMgr;
class CFX_GEModule {
public:
static CFX_GEModule* Get();
static void Destroy();
void Init(const char** pUserFontPaths);
CFX_FontCache* GetFontCache();
CFX_FontMgr* GetFontMgr() { return m_pFontMgr.get(); }
void* GetPlatformData() { return m_pPlatformData; }
private:
CFX_GEModule();
~CFX_GEModule();
void InitPlatform();
void DestroyPlatform();
std::unique_ptr<CFX_FontCache> m_pFontCache;
std::unique_ptr<CFX_FontMgr> m_pFontMgr;
void* m_pPlatformData;
const char** m_pUserFontPaths;
};
#endif // CORE_FXGE_CFX_GEMODULE_H_
|