PoDoFo 1.0.0-dev
Loading...
Searching...
No Matches
PdfFontCID.h
1
7#ifndef PDF_FONT_CID_H
8#define PDF_FONT_CID_H
9
10#include "PdfFont.h"
11
12namespace PoDoFo {
13
16class PODOFO_API PdfFontCID : public PdfFont
17{
18 friend class PdfFont;
19 friend class PdfFontCIDTrueType;
20 friend class PdfFontCIDCFF;
21
22private:
24 const PdfEncoding& encoding);
25
26public:
27 bool SupportsSubsetting() const override;
28
29protected:
30 void embedFont() override;
31 void embedFontSubset() override;
32 PdfObject* getDescendantFontObject() override;
33 void createWidths(PdfDictionary& fontDict, const cspan<PdfCharGIDInfo>& infos);
34
35protected:
36 virtual void embedFontFileSubset(const std::vector<PdfCharGIDInfo>& subsetInfos,
37 const PdfCIDSystemInfo& cidInfo) = 0;
38 void initImported() override;
39
40protected:
41 PdfObject& GetDescendantFont() { return *m_descendantFont; }
42 PdfObject& GetDescriptor() { return *m_descriptor; }
43
44private:
45 PdfObject* m_descendantFont;
46 PdfObject* m_descriptor;
47};
48
49};
50
51#endif // PDF_FONT_CID_H
The PDF dictionary data type of PoDoFo (inherits from PdfDataContainer, the base class for such repre...
Definition PdfDictionary.h:82
PdfDocument is the core interface for working with PDF documents.
Definition PdfDocument.h:111
A PdfEncoding is in PdfFont to transform a text string into a representation so that it can be displa...
Definition PdfEncoding.h:55
A PdfFont that represents a CID-keyed font that has a CFF font backend (aka "CIDFontType0")
Definition PdfFontCIDCFF.h:17
A PdfFont that represents a CID-keyed font that has a TrueType/OpenType font backend (aka "CIDFontTyp...
Definition PdfFontCIDTrueType.h:17
A PdfFont that represents a CID-keyed font.
Definition PdfFontCID.h:17
Before you can draw text on a PDF document, you have to create a font object first.
Definition PdfFont.h:45
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:35
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:38
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16
std::shared_ptr< const PdfFontMetrics > PdfFontMetricsConstPtr
Convenience typedef for a const PdfEncoding shared ptr.
Definition PdfFontMetrics.h:27