PoDoFo 1.2.0
Loading...
Searching...
No Matches
PdfFontSimple.h
1// SPDX-FileCopyrightText: 2007 Dominik Seichter <domseichter@web.de>
2// SPDX-FileCopyrightText: 2020 Francesco Pretto <ceztko@gmail.com>
3// SPDX-License-Identifier: LGPL-2.0-or-later OR MPL-2.0
4
5#ifndef PDF_FONT_SIMPLE_H
6#define PDF_FONT_SIMPLE_H
7
8#include "PdfDeclarations.h"
9
10#include "PdfFont.h"
11
12namespace PoDoFo {
13
16class PODOFO_API PdfFontSimple : public PdfFont
17{
18 friend class PdfFontTrueType;
19 friend class PdfFontType1;
20 friend class PdfFontType3;
21
22private:
35
36protected:
37 void embedFont() override final;
38
39 void embedFontSubset() override final;
40
41 void initImported() override;
42
43private:
44 void getWidthsArray(PdfArray& widths) const;
45
46protected:
47 PdfObject* m_Descriptor;
48};
49
50};
51
52#endif // PDF_FONT_SIMPLE_H
This file should be included as the FIRST file in every header of PoDoFo lib.
This class represents a PdfArray Use it for all arrays that are written to a PDF file.
Definition PdfArray.h:76
PdfDocument is the core interface for working with PDF documents.
Definition PdfDocument.h:108
A PdfEncoding is in PdfFont to transform a text string into a representation so that it can be displa...
Definition PdfEncoding.h:51
This is a common base class for simple, non CID-keyed fonts like Type1, TrueType and Type3.
Definition PdfFontSimple.h:17
A PdfFont implementation that can be used to embed truetype fonts into a PDF file or to draw with tru...
Definition PdfFontTrueType.h:20
A PdfFont implementation that can be used to embed type1 fonts into a PDF file or to draw with type1 ...
Definition PdfFontType1.h:20
A PdfFont implementation that can be used to embed type3 fonts into a PDF file or to draw with type3 ...
Definition PdfFontType3.h:20
Before you can draw text on a PDF document, you have to create a font object first.
Definition PdfFont.h:42
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:31
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:30
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
std::shared_ptr< const PdfFontMetrics > PdfFontMetricsConstPtr
Convenience typedef for a const PdfEncoding shared ptr.
Definition PdfFontMetrics.h:24
PdfFontType
Enum specifying the type of the font.
Definition PdfDeclarations.h:266