PoDoFo 1.0.0-dev
Loading...
Searching...
No Matches
PdfFontObject.h
1
7#ifndef PDF_FONT_OBJECT_H
8#define PDF_FONT_OBJECT_H
9
10#include "PdfFont.h"
11
12namespace PoDoFo {
13
14class PODOFO_API PdfFontObject final : public PdfFont
15{
16 friend class PdfFont;
17
18private:
22 PdfFontObject(PdfObject& obj, const PdfFontMetricsConstPtr& metrics,
23 const PdfEncoding& encoding);
24
25private:
26 // To be used by PdfFont
27 static std::unique_ptr<PdfFontObject> Create(PdfObject& obj, PdfObject& descendantObj,
28 const PdfFontMetricsConstPtr& metrics, const PdfEncoding& encoding);
29
30 static std::unique_ptr<PdfFontObject> Create(PdfObject& obj,
31 const PdfFontMetricsConstPtr& metrics, const PdfEncoding& encoding);
32
33public:
34 bool IsObjectLoaded() const override;
35 PdfFontType GetType() const override;
36};
37
38}
39
40#endif // PDF_FONT_OBJECT_H
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16
@ Create
Create a new file or truncate existing one for writing/reading.
PdfFontType
Enum specifying the type of the font.
Definition PdfDeclarations.h:286