PdfFontFamily enum Null safety

Indicates type of standard PDF fonts.

//Create a new PDF document.
PdfDocument document = PdfDocument()
  ..pages.add().graphics.drawString(
      'Hello world!', PdfStandardFont(PdfFontFamily.helvetica, 12),
      brush: PdfBrushes.black);
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();
Inheritance

Constructors

PdfFontFamily()
const

Values

helvetica → const PdfFontFamily

Represents the Helvetica font.

const PdfFontFamily(0)
courier → const PdfFontFamily

Represents the Courier font.

const PdfFontFamily(1)
timesRoman → const PdfFontFamily

Represents the Times Roman font.

const PdfFontFamily(2)
symbol → const PdfFontFamily

Represents the Symbol font.

const PdfFontFamily(3)
zapfDingbats → const PdfFontFamily

Represents the ZapfDingbats font.

const PdfFontFamily(4)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<PdfFontFamily>
A constant List of the values in this enum, in order of their declaration.
[helvetica, courier, timesRoman, symbol, zapfDingbats]