PdfFont class Null safety

Defines a particular format for text, including font face, size, and style attributes.

//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();
Implementers

Constructors

PdfFont()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
height double
Gets the height of the font in points.
read-only
name String
Gets the font name.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
size double
Gets the font size.
read-only
style PdfFontStyle
Gets style of the font.
read-only

Methods

measureString(String text, {Size? layoutArea, PdfStringFormat? format}) Size
Measures a string by using this font.
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