PdfTtfFont constructor

PdfTtfFont(
  1. PdfDocument pdfDocument,
  2. ByteData bytes, {
  3. 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());
}