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 = document.save();
//Close the document.
document.dispose();

Constants

courier → const PdfFontFamily

Represents the Courier font.

const PdfFontFamily(1)
helvetica → const PdfFontFamily

Represents the Helvetica font.

const PdfFontFamily(0)
symbol → const PdfFontFamily

Represents the Symbol font.

const PdfFontFamily(3)
timesRoman → const PdfFontFamily

Represents the Times Roman font.

const PdfFontFamily(2)
values → const List<PdfFontFamily>

A constant List of the values in this enum, in order of their declaration.

const List<PdfFontFamily>
zapfDingbats → const PdfFontFamily

Represents the ZapfDingbats font.

const PdfFontFamily(4)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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