Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
cfx_gemodule.h
Go to the documentation of this file.
1
// Copyright 2016 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
CORE_FXGE_CFX_GEMODULE_H_
8
#
define
CORE_FXGE_CFX_GEMODULE_H_
9
10
#
include
<
stdint
.
h
>
11
12
#
include
<
memory
>
13
14
#
include
"build/build_config.h"
15
#
include
"core/fxcrt/unowned_ptr_exclusion.h"
16
17
#
if
BUILDFLAG
(
IS_APPLE
)
18
#
include
"core/fxcrt/span.h"
19
#
endif
20
21
class
CFX_FontCache
;
22
class
CFX_FontMgr
;
23
class
SystemFontInfoIface
;
24
25
class
CFX_GEModule
{
26
public
:
27
class
PlatformIface
{
28
public
:
29
static
std
::
unique_ptr
<
PlatformIface
>
Create
();
30
virtual
~
PlatformIface
() =
default
;
31
32
virtual
void
Init
() = 0;
33
virtual
std
::
unique_ptr
<
SystemFontInfoIface
>
34
CreateDefaultSystemFontInfo
() = 0;
35
#
if
BUILDFLAG
(
IS_APPLE
)
36
virtual
void
*
CreatePlatformFont
(
pdfium
::
span
<
const
uint8_t
>
font_span
) = 0;
37
#
endif
38
};
39
40
static
void
Create
(
const
char
** pUserFontPaths);
41
static
void
Destroy
();
42
static
CFX_GEModule
*
Get
();
43
44
CFX_FontCache
*
GetFontCache
()
const
{
return
m_pFontCache.get(); }
45
CFX_FontMgr
*
GetFontMgr
()
const
{
return
m_pFontMgr.get(); }
46
PlatformIface
*
GetPlatform
()
const
{
return
m_pPlatform.get(); }
47
const
char
**
GetUserFontPaths
()
const
{
return
m_pUserFontPaths; }
48
49
private
:
50
explicit
CFX_GEModule(
const
char
** pUserFontPaths);
51
~CFX_GEModule();
52
53
std::unique_ptr<PlatformIface>
const
m_pPlatform;
54
std::unique_ptr<CFX_FontMgr>
const
m_pFontMgr;
55
std::unique_ptr<CFX_FontCache>
const
m_pFontCache;
56
57
// Exclude because taken from public API.
58
UNOWNED_PTR_EXCLUSION
const
char
**
const
m_pUserFontPaths;
59
};
60
61
#
endif
// CORE_FXGE_CFX_GEMODULE_H_
ByteString
fxcrt::ByteString ByteString
Definition
bytestring.h:180
CFX_FontCache
Definition
cfx_fontcache.h:18
CFX_FontMgr
Definition
cfx_fontmgr.h:28
CFX_GEModule::PlatformIface
Definition
cfx_gemodule.h:27
CFX_GEModule::PlatformIface::~PlatformIface
virtual ~PlatformIface()=default
CFX_GEModule::PlatformIface::Init
virtual void Init()=0
CFX_GEModule::PlatformIface::CreateDefaultSystemFontInfo
virtual std::unique_ptr< SystemFontInfoIface > CreateDefaultSystemFontInfo()=0
CFX_GEModule::PlatformIface::Create
static std::unique_ptr< PlatformIface > Create()
Definition
fx_android_impl.cpp:42
CFX_GEModule
Definition
cfx_gemodule.h:25
CFX_GEModule::GetPlatform
PlatformIface * GetPlatform() const
Definition
cfx_gemodule.h:46
CFX_GEModule::Get
static CFX_GEModule * Get()
Definition
cfx_gemodule.cpp:45
CFX_GEModule::GetFontCache
CFX_FontCache * GetFontCache() const
Definition
cfx_gemodule.h:44
CFX_GEModule::Create
static void Create(const char **pUserFontPaths)
Definition
cfx_gemodule.cpp:29
CFX_GEModule::GetFontMgr
CFX_FontMgr * GetFontMgr() const
Definition
cfx_gemodule.h:45
CFX_GEModule::Destroy
static void Destroy()
Definition
cfx_gemodule.cpp:38
CFX_GEModule::GetUserFontPaths
const char ** GetUserFontPaths() const
Definition
cfx_gemodule.h:47
CPDF_Dictionary::DictMap
std::map< ByteString, RetainPtr< CPDF_Object >, std::less<> > DictMap
Definition
cpdf_dictionary.h:31
CPDF_Document
Definition
cpdf_document.h:29
CPDF_Font::UseTTCharmapMSSymbol
static bool UseTTCharmapMSSymbol(const RetainPtr< CFX_Face > &face)
Definition
cpdf_font.h:144
CPDF_SimpleFont
Definition
cpdf_simplefont.h:19
CPDF_SimpleFont::LoadCommon
bool LoadCommon()
Definition
cpdf_simplefont.cpp:223
CPDF_Type1Font::LoadGlyphMap
void LoadGlyphMap() override
Definition
cpdf_type1font.cpp:130
CPDF_Type1Font::AsType1Font
CPDF_Type1Font * AsType1Font() override
Definition
cpdf_type1font.cpp:90
CPDF_Type1Font::AsType1Font
const CPDF_Type1Font * AsType1Font() const override
Definition
cpdf_type1font.cpp:86
CPDF_Type1Font::IsBase14Font
bool IsBase14Font() const
Definition
cpdf_type1font.h:32
CPDF_Type1Font::~CPDF_Type1Font
~CPDF_Type1Font() override
CPDF_Type1Font::Load
bool Load() override
Definition
cpdf_type1font.cpp:94
CPDF_Type1Font::IsType1Font
bool IsType1Font() const override
Definition
cpdf_type1font.cpp:82
SystemFontInfoIface
Definition
systemfontinfo_iface.h:21
fxcrt::RetainPtr
Definition
retain_ptr.h:28
FXFONT_NONSYMBOLIC
#define FXFONT_NONSYMBOLIC
Definition
fx_font.h:34
FXFONT_SYMBOLIC
#define FXFONT_SYMBOLIC
Definition
fx_font.h:32
fxge
Definition
cfx_face.h:23
fxge::FontEncoding
FontEncoding
Definition
fx_fontencoding.h:12
fxge::FontEncoding::kUnicode
@ kUnicode
Definition
fx_fontencoding.h:25
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
UNOWNED_PTR_EXCLUSION
#define UNOWNED_PTR_EXCLUSION
Definition
unowned_ptr_exclusion.h:14
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxge
cfx_gemodule.h
Generated on
for Qt by
1.18.0