PdfTtfFont constructor
PdfTtfFont(
- PdfDocument pdfDocument,
- ByteData bytes, {
- bool protect = false,
Constructs a PdfTtfFont
Implementation
PdfTtfFont(PdfDocument pdfDocument, ByteData bytes, {bool protect = false})
: font = TtfParser(bytes),
super.create(pdfDocument, subtype: '/TrueType') {
file = PdfObjectStream(pdfDocument, isBinary: true);
unicodeCMap = PdfUnicodeCmap(pdfDocument, protect);
descriptor = PdfFontDescriptor(this, file);
widthsObject = PdfObject<PdfArray>(pdfDocument, params: PdfArray());
}