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
systemfontinfo_iface.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_SYSTEMFONTINFO_IFACE_H_
8
#
define
CORE_FXGE_SYSTEMFONTINFO_IFACE_H_
9
10
#
include
<
stddef
.
h
>
11
#
include
<
stdint
.
h
>
12
13
#
include
"core/fxcrt/bytestring.h"
14
#
include
"core/fxcrt/fx_codepage_forward.h"
15
#
include
"core/fxcrt/span.h"
16
#
include
"core/fxge/cfx_fontmapper.h"
17
18
constexpr
uint32_t
kTableNAME
=
CFX_FontMapper
::
MakeTag
(
'n'
,
'a'
,
'm'
,
'e'
)
;
19
constexpr
uint32_t
kTableTTCF
=
CFX_FontMapper
::
MakeTag
(
't'
,
't'
,
'c'
,
'f'
)
;
20
21
class
SystemFontInfoIface
{
22
public
:
23
virtual
~
SystemFontInfoIface
() =
default
;
24
25
virtual
bool
EnumFontList
(
CFX_FontMapper
* pMapper) = 0;
26
virtual
void
*
MapFont
(
int
weight,
27
bool
bItalic,
28
FX_Charset
charset,
29
int
pitch_family,
30
const
ByteString
& face) = 0;
31
virtual
void
*
GetFont
(
const
ByteString
& face) = 0;
32
virtual
size_t
GetFontData
(
void
* hFont,
33
uint32_t table,
34
pdfium::span<uint8_t> buffer) = 0;
35
virtual
bool
GetFaceName
(
void
* hFont,
ByteString
* name) = 0;
36
virtual
bool
GetFontCharset
(
void
* hFont,
FX_Charset
* charset) = 0;
37
virtual
void
DeleteFont
(
void
* hFont) = 0;
38
};
39
40
#
endif
// CORE_FXGE_SYSTEMFONTINFO_IFACE_H_
ByteString
fxcrt::ByteString ByteString
Definition
bytestring.h:180
CFPF_SkiaFontMgr
Definition
cfpf_skiafontmgr.h:23
CFPF_SkiaFont
Definition
cfpf_skiafont.h:22
CFPF_SkiaFont::GetCharset
FX_Charset GetCharset() const
Definition
cfpf_skiafont.h:32
CFPF_SkiaFont::GetFamilyName
ByteString GetFamilyName()
Definition
cfpf_skiafont.cpp:29
CFX_AndroidFontInfo::MapFont
void * MapFont(int weight, bool bItalic, FX_Charset charset, int pitch_family, const ByteString &face) override
Definition
cfx_androidfontinfo.cpp:34
CFX_AndroidFontInfo::GetFontCharset
bool GetFontCharset(void *hFont, FX_Charset *charset) override
Definition
cfx_androidfontinfo.cpp:76
CFX_AndroidFontInfo::~CFX_AndroidFontInfo
~CFX_AndroidFontInfo() override
CFX_AndroidFontInfo::DeleteFont
void DeleteFont(void *hFont) override
Definition
cfx_androidfontinfo.cpp:84
CFX_AndroidFontInfo::CFX_AndroidFontInfo
CFX_AndroidFontInfo()
CFX_AndroidFontInfo::Init
bool Init(CFPF_SkiaFontMgr *pFontMgr, const char **user_paths)
Definition
cfx_androidfontinfo.cpp:19
CFX_AndroidFontInfo::GetFaceName
bool GetFaceName(void *hFont, ByteString *name) override
Definition
cfx_androidfontinfo.cpp:68
CFX_AndroidFontInfo::GetFontData
size_t GetFontData(void *hFont, uint32_t table, pdfium::span< uint8_t > buffer) override
Definition
cfx_androidfontinfo.cpp:60
CFX_AndroidFontInfo::GetFont
void * GetFont(const ByteString &face) override
Definition
cfx_androidfontinfo.cpp:56
CFX_AndroidFontInfo::EnumFontList
bool EnumFontList(CFX_FontMapper *pMapper) override
Definition
cfx_androidfontinfo.cpp:30
CFX_FontMapper
Definition
cfx_fontmapper.h:31
CFX_FontMapper::MakeTag
static constexpr uint32_t MakeTag(char c1, char c2, char c3, char c4)
Definition
cfx_fontmapper.h:59
SystemFontInfoIface
Definition
systemfontinfo_iface.h:21
SystemFontInfoIface::GetFont
virtual void * GetFont(const ByteString &face)=0
SystemFontInfoIface::~SystemFontInfoIface
virtual ~SystemFontInfoIface()=default
SystemFontInfoIface::GetFontCharset
virtual bool GetFontCharset(void *hFont, FX_Charset *charset)=0
SystemFontInfoIface::GetFaceName
virtual bool GetFaceName(void *hFont, ByteString *name)=0
SystemFontInfoIface::EnumFontList
virtual bool EnumFontList(CFX_FontMapper *pMapper)=0
SystemFontInfoIface::DeleteFont
virtual void DeleteFont(void *hFont)=0
SystemFontInfoIface::MapFont
virtual void * MapFont(int weight, bool bItalic, FX_Charset charset, int pitch_family, const ByteString &face)=0
SystemFontInfoIface::GetFontData
virtual size_t GetFontData(void *hFont, uint32_t table, pdfium::span< uint8_t > buffer)=0
fxcrt::ByteString::operator=
ByteString & operator=(ByteString &&that) noexcept
Definition
bytestring.cpp:175
fxcrt::UnownedPtr
Definition
unowned_ptr.h:76
FX_Charset
FX_Charset
Definition
fx_codepage.h:71
FontFamilyIsFixedPitch
bool FontFamilyIsFixedPitch(uint32_t family)
Definition
fx_font.h:86
FXFONT_SERIF
#define FXFONT_SERIF
Definition
fx_font.h:31
FontFamilyIsScript
bool FontFamilyIsScript(int32_t family)
Definition
fx_font.h:92
FXFONT_ITALIC
#define FXFONT_ITALIC
Definition
fx_font.h:35
FontFamilyIsRoman
bool FontFamilyIsRoman(uint32_t family)
Definition
fx_font.h:89
FXFONT_SCRIPT
#define FXFONT_SCRIPT
Definition
fx_font.h:33
FXFONT_FORCE_BOLD
#define FXFONT_FORCE_BOLD
Definition
fx_font.h:38
FXFONT_FIXED_PITCH
#define FXFONT_FIXED_PITCH
Definition
fx_font.h:30
kTableTTCF
constexpr uint32_t kTableTTCF
Definition
systemfontinfo_iface.h:19
kTableNAME
constexpr uint32_t kTableNAME
Definition
systemfontinfo_iface.h:18
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxge
systemfontinfo_iface.h
Generated on
for Qt by
1.18.0