fontFamily property

PdfFontFamily get fontFamily

Gets the font family.

//Create a new PDF document.
PdfDocument document = PdfDocument();
//Create PDF standard font.
PdfStandardFont font = PdfStandardFont(PdfFontFamily.helvetica, 12);
//Draw the text.
document.pages.add().graphics.drawString(
    'The font family name is ${font.fontFamily}', font,
    brush: PdfBrushes.black);
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();

Implementation

PdfFontFamily get fontFamily => _fontFamily;