PoDoFo  1.0.0-dev
PdfFontSimple.h
1 
7 #ifndef PDF_FONT_SIMPLE_H
8 #define PDF_FONT_SIMPLE_H
9 
10 #include "PdfDeclarations.h"
11 
12 #include "PdfFont.h"
13 
14 namespace PoDoFo {
15 
19 class PODOFO_API PdfFontSimple : public PdfFont
20 {
21  friend class PdfFontTrueType;
22  friend class PdfFontType1;
23  friend class PdfFontType3;
24 
25 private:
38  const PdfEncoding& encoding);
39 
40 protected:
41  void embedFont() override final;
42 
43  void initImported() override;
44 
45 private:
46  void getWidthsArray(PdfArray& widths) const;
47  void getFontMatrixArray(PdfArray& fontMatrix) const;
48 
49 protected:
50  PdfObject* m_Descriptor;
51 };
52 
53 };
54 
55 #endif // PDF_FONT_SIMPLE_H
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
This class represents a PdfArray Use it for all arrays that are written to a PDF file.
Definition: PdfArray.h:81
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:55
This is a common base class for simple, non CID-keyed fonts like Type1, TrueType and Type3.
Definition: PdfFontSimple.h:20
A PdfFont implementation that can be used to embed truetype fonts into a PDF file or to draw with tru...
Definition: PdfFontTrueType.h:23
A PdfFont implementation that can be used to embed type1 fonts into a PDF file or to draw with type1 ...
Definition: PdfFontType1.h:23
A PdfFont implementation that can be used to embed type3 fonts into a PDF file or to draw with type3 ...
Definition: PdfFontType3.h:23
Before you can draw text on a PDF document, you have to create a font object first.
Definition: PdfFont.h:49
This class represents a PDF indirect Object in memory.
Definition: PdfObject.h:35
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:24