Support for MMType1 fonts, minor bugfixing

This commit is contained in:
Jakub Melka
2020-08-18 19:39:09 +02:00
parent 8ea714555c
commit b1beca8ef9
6 changed files with 24 additions and 11 deletions

View File

@@ -129,6 +129,7 @@ enum class FontType
Invalid,
Type0,
Type1,
MMType1,
TrueType,
Type3
};
@@ -321,7 +322,8 @@ class PDFType1Font : public PDFSimpleFont
using BaseClass = PDFSimpleFont;
public:
explicit PDFType1Font(FontDescriptor fontDescriptor,
explicit PDFType1Font(FontType fontType,
FontDescriptor fontDescriptor,
QByteArray name,
QByteArray baseFont,
PDFInteger firstChar,
@@ -340,6 +342,7 @@ public:
StandardFontType getStandardFontType() const { return m_standardFontType; }
private:
FontType m_fontType;
StandardFontType m_standardFontType; ///< Type of the standard font (or invalid, if it is not a standard font)
};