Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfgas_pdffontmgr.h
Go to the documentation of this file.
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_PDFFONTMGR_H_
8
#
define
XFA_FGAS_FONT_CFGAS_PDFFONTMGR_H_
9
10
#
include
<
map
>
11
#
include
<
utility
>
12
13
#
include
"core/fxcrt/fx_string.h"
14
#
include
"core/fxcrt/retain_ptr.h"
15
#
include
"core/fxcrt/unowned_ptr.h"
16
#
include
"xfa/fgas/font/cfgas_fontmgr.h"
17
18
class
CFGAS_GEFont;
19
class
CPDF_Document
;
20
21
class
CFGAS_PDFFontMgr
final
{
22
public
:
23
explicit
CFGAS_PDFFontMgr
(
const
CPDF_Document
* pDoc);
24
~
CFGAS_PDFFontMgr
();
25
26
RetainPtr
<CFGAS_GEFont>
GetFont
(
const
WideString
& wsFontFamily,
27
uint32_t dwFontStyles,
28
bool
bStrictMatch);
29
30
private
:
31
RetainPtr
<CFGAS_GEFont> FindFont(
const
ByteString
& strFamilyName,
32
bool
bBold,
33
bool
bItalic,
34
bool
bStrictMatch);
35
36
UnownedPtr
<
const
CPDF_Document
>
const
m_pDoc;
37
std::map<std::pair<WideString, uint32_t>, RetainPtr<CFGAS_GEFont>> m_FontMap;
38
};
39
40
#
endif
// XFA_FGAS_FONT_CFGAS_PDFFONTMGR_H_
ByteString
fxcrt::ByteString ByteString
Definition
bytestring.h:180
DCHECK
#define DCHECK
Definition
check.h:33
CFGAS_PDFFontMgr::GetFont
RetainPtr< CFGAS_GEFont > GetFont(const WideString &wsFontFamily, uint32_t dwFontStyles, bool bStrictMatch)
Definition
cfgas_pdffontmgr.cpp:176
CFGAS_PDFFontMgr::CFGAS_PDFFontMgr
CFGAS_PDFFontMgr(const CPDF_Document *pDoc)
Definition
cfgas_pdffontmgr.cpp:127
CFGAS_PDFFontMgr::~CFGAS_PDFFontMgr
~CFGAS_PDFFontMgr()
CPDF_DictionaryLocker
Definition
cpdf_dictionary.h:157
CPDF_Dictionary::DictMap
std::map< ByteString, RetainPtr< CPDF_Object >, std::less<> > DictMap
Definition
cpdf_dictionary.h:31
CPDF_DocPageData::FromDocument
static CPDF_DocPageData * FromDocument(const CPDF_Document *pDoc)
Definition
cpdf_docpagedata.cpp:166
CPDF_Document
Definition
cpdf_document.h:29
fxcrt::ByteString::operator==
bool operator==(const char *ptr) const
Definition
bytestring.cpp:208
fxcrt::RetainPtr
Definition
retain_ptr.h:28
fxcrt::UnownedPtr
Definition
unowned_ptr.h:76
fxcrt::WideString::WideString
WideString(const WideString &other)=default
fxcrt::WideString::ToDefANSI
ByteString ToDefANSI() const
Definition
widestring.cpp:589
FontStyleIsItalic
bool FontStyleIsItalic(uint32_t style)
Definition
fx_font.h:64
FontStyleIsForceBold
bool FontStyleIsForceBold(uint32_t style)
Definition
fx_font.h:61
fxcrt
Definition
stl_util.h:17
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
ByteStringView
fxcrt::ByteStringView ByteStringView
Definition
string_view_template.h:325
WideString
fxcrt::WideString WideString
Definition
widestring.h:207
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fgas
font
cfgas_pdffontmgr.h
Generated on
for Qt by
1.16.1