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_psfonttracker.h
Go to the documentation of this file.
1
// Copyright 2021 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
#
ifndef
CORE_FXGE_WIN32_CFX_PSFONTTRACKER_H_
6
#
define
CORE_FXGE_WIN32_CFX_PSFONTTRACKER_H_
7
8
#
include
<
stdint
.
h
>
9
10
#
include
<
functional
>
11
#
include
<
set
>
12
13
#
include
"core/fxcrt/unowned_ptr.h"
14
15
class
CFX_Font
;
16
17
class
CFX_PSFontTracker
{
18
public
:
19
CFX_PSFontTracker
();
20
~
CFX_PSFontTracker
();
21
22
void
AddFontObject
(
const
CFX_Font
* font);
23
bool
SeenFontObject
(
const
CFX_Font
* font)
const
;
24
25
private
:
26
// Tracks font objects via tags, so if two CFX_Font instances are for the same
27
// PDF object, then they are deduplicated.
28
std::set<uint64_t> seen_font_tags_;
29
30
// For fonts without valid tags, e.g. ones created in-memory, track them by
31
// pointer.
32
std::set<UnownedPtr<
const
CFX_Font>, std::less<>> seen_font_ptrs_;
33
};
34
35
#
endif
// CORE_FXGE_WIN32_CFX_PSFONTTRACKER_H_
TEST_F
TEST_F(CFX_WindowsRenderDeviceTest, SimpleClipTriangle)
Definition
cfx_windowsrenderdevice_embeddertest.cpp:49
CFX_Font
Definition
cfx_font.h:38
CFX_Matrix
Definition
fx_coordinates.h:440
CFX_PSFontTracker
Definition
cfx_psfonttracker.h:17
CFX_PSFontTracker::~CFX_PSFontTracker
~CFX_PSFontTracker()
CFX_PSFontTracker::CFX_PSFontTracker
CFX_PSFontTracker()
CFX_PSFontTracker::SeenFontObject
bool SeenFontObject(const CFX_Font *font) const
Definition
cfx_psfonttracker.cpp:26
CFX_PSFontTracker::AddFontObject
void AddFontObject(const CFX_Font *font)
Definition
cfx_psfonttracker.cpp:15
CFX_Path
Definition
cfx_path.h:18
CFX_Path::AppendRect
void AppendRect(float left, float bottom, float right, float top)
Definition
cfx_path.cpp:310
CFX_Path::AppendLine
void AppendLine(const CFX_PointF &pt1, const CFX_PointF &pt2)
Definition
cfx_path.cpp:298
CFX_Path::ClosePath
void ClosePath()
Definition
cfx_path.cpp:270
CFX_WindowsRenderDeviceTest
Definition
cfx_windowsrenderdevice_embeddertest.cpp:23
CFX_WindowsRenderDeviceTest::SetUp
void SetUp() override
Definition
cfx_windowsrenderdevice_embeddertest.cpp:25
CFX_WindowsRenderDeviceTest::m_PSFontTracker
CFX_PSFontTracker m_PSFontTracker
Definition
cfx_windowsrenderdevice_embeddertest.cpp:45
CFX_WindowsRenderDeviceTest::TearDown
void TearDown() override
Definition
cfx_windowsrenderdevice_embeddertest.cpp:36
CFX_WindowsRenderDeviceTest::m_hDC
HDC m_hDC
Definition
cfx_windowsrenderdevice_embeddertest.cpp:44
CFX_WindowsRenderDeviceTest::m_driver
std::unique_ptr< CFX_WindowsRenderDevice > m_driver
Definition
cfx_windowsrenderdevice_embeddertest.cpp:46
EmbedderTest
Definition
embedder_test.h:40
EmbedderTest::SetUp
void SetUp() override
Definition
embedder_test.cpp:276
EmbedderTest::TearDown
void TearDown() override
Definition
embedder_test.cpp:284
CFX_PointF
CFX_PTemplate< float > CFX_PointF
Definition
fx_coordinates.h:51
FX_RECT
Definition
fx_coordinates.h:144
FX_RECT::FX_RECT
constexpr FX_RECT(int l, int t, int r, int b)
Definition
fx_coordinates.h:146
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxge
win32
cfx_psfonttracker.h
Generated on
for Qt by
1.18.0