PoDoFo 1.2.0
Loading...
Searching...
No Matches
PdfFontObject.h
1// SPDX-FileCopyrightText: 2021 Francesco Pretto <ceztko@gmail.com>
2// SPDX-License-Identifier: LGPL-2.0-or-later OR MPL-2.0
3
4#ifndef PDF_FONT_OBJECT_H
5#define PDF_FONT_OBJECT_H
6
7#include "PdfFont.h"
8
9namespace PoDoFo {
10
11class PODOFO_API PdfFontObject final : public PdfFont
12{
13 friend class PdfFont;
14
15private:
17 PdfFontObject(PdfObject& obj, PdfFontMetricsConstPtr&& metrics,
18 const PdfEncoding& encoding);
19
20private:
21 // To be used by PdfFont
22 static std::unique_ptr<PdfFontObject> Create(PdfObject& obj, PdfObject& descendantObj,
23 PdfFontMetricsConstPtr&& metrics, const PdfEncoding& encoding);
24
25 static std::unique_ptr<PdfFontObject> Create(PdfObject& obj,
26 PdfFontMetricsConstPtr&& metrics, const PdfEncoding& encoding);
27
28public:
29 bool IsObjectLoaded() const override;
30};
31
32}
33
34#endif // PDF_FONT_OBJECT_H
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
@ Create
Create a new file or truncate existing one for writing/reading.