PdfFont.create constructor
PdfFont.create(
- PdfDocument pdfDocument, {
- required String subtype,
Constructs a PdfFont. This will attempt to map the font from a known font name to that in Pdf, defaulting to Helvetica if not possible.
Implementation
PdfFont.create(PdfDocument pdfDocument, {required this.subtype})
: super(pdfDocument, type: '/Font') {
pdfDocument.fonts.add(this);
}