PoDoFo  1.0.0-dev
PdfFontType1.h
1 
7 #ifndef PDF_FONT_TYPE1_H
8 #define PDF_FONT_TYPE1_H
9 
10 #include "PdfDeclarations.h"
11 
12 #include <set>
13 
14 #include "PdfFontSimple.h"
15 
16 namespace PoDoFo {
17 
22 class PODOFO_API PdfFontType1 final : public PdfFontSimple
23 {
24  friend class PdfFont;
25 
26 private:
27 
37  PdfFontType1(PdfDocument& doc, const PdfFontMetricsConstPtr& metrics,
38  const PdfEncoding& encoding);
39 
40 public:
41  bool SupportsSubsetting() const override;
42  PdfFontType GetType() const override;
43 
44 protected:
45  //void embedFontSubset() override;
46  //void embedFontFile(PdfObject& descriptor) override;
47 
48 private:
49  //bool FindSeac(const char* buffer, size_t length);
50  //ptrdiff_t FindInBuffer(const char* needle, const char* haystack, size_t len) const;
51 };
52 
53 };
54 
55 #endif // PDF_FONT_TYPE1_H
56 
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
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 type1 fonts into a PDF file or to draw with type1 ...
Definition: PdfFontType1.h:23
Before you can draw text on a PDF document, you have to create a font object first.
Definition: PdfFont.h:49
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
PdfFontType
Enum specifying the type of the font.
Definition: PdfDeclarations.h:257