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,
params: PdfDict.values({
'/Type': const PdfName('/Font'),
}),
) {
pdfDocument.fonts.add(this);
}