PdfFont class Null safety

Pdf font object

Implementers

Constructors

PdfFont.courier(PdfDocument pdfDocument)
Monospaced slab serif typeface.
factory
PdfFont.courierBold(PdfDocument pdfDocument)
Bold monospaced slab serif typeface.
factory
PdfFont.courierBoldOblique(PdfDocument pdfDocument)
Bold and Italic monospaced slab serif typeface.
factory
PdfFont.courierOblique(PdfDocument pdfDocument)
Italic monospaced slab serif typeface.
factory
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.
PdfFont.helvetica(PdfDocument pdfDocument)
Neo-grotesque design sans-serif typeface
factory
PdfFont.helveticaBold(PdfDocument pdfDocument)
Bold Neo-grotesque design sans-serif typeface
factory
PdfFont.helveticaBoldOblique(PdfDocument pdfDocument)
Bold and Italic Neo-grotesque design sans-serif typeface
factory
PdfFont.helveticaOblique(PdfDocument pdfDocument)
Italic Neo-grotesque design sans-serif typeface
factory
PdfFont.symbol(PdfDocument pdfDocument)
Complete unaccented serif Greek alphabet (upper and lower case) and a selection of commonly used mathematical symbols.
factory
PdfFont.times(PdfDocument pdfDocument)
Serif typeface commissioned by the British newspaper The Times
factory
PdfFont.timesBold(PdfDocument pdfDocument)
Bold serif typeface commissioned by the British newspaper The Times
factory
PdfFont.timesBoldItalic(PdfDocument pdfDocument)
Bold and Italic serif typeface commissioned by the British newspaper The Times
factory
PdfFont.timesItalic(PdfDocument pdfDocument)
Italic serif typeface commissioned by the British newspaper The Times
factory
PdfFont.zapfDingbats(PdfDocument pdfDocument)
Hermann Zapf ornament glyphs or spacers, often employed to create box frames
factory

Properties

ascent double
Spans the distance between the baseline and the top of the glyph that reaches farthest from the baseline
read-only
descent double
Spans the distance between the baseline and the lowest descending glyph
read-only
fontName String
The font's real name
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
Internal name
read-only
objgen int
This is the generation number for this object.
final, inherited
objser int
This is the unique serial number for this object.
final, inherited
params → PdfDict<PdfDataType>
This is the object parameters.
final, inherited
pdfDocument PdfDocument
This allows any Pdf object to refer to the document being constructed.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subtype String
The df type of the font, usually /Type1
final
unitsPerEm int
Internal units per
read-only

Methods

glyphMetrics(int charCode) PdfFontMetrics
Calculate the PdfFontMetrics for this glyph
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
prepare() → void
Prepare the object to be written to the stream
putText(PdfStream stream, String text) → void
Draw some text
ref() → PdfIndirect
Returns the unique serial number in Pdf format
inherited
stringMetrics(String s, {double letterSpacing = 0}) PdfFontMetrics
Calculate the PdfFontMetrics for this string
stringSize(String s) PdfPoint
Calculage the unit size of this string
toString() String
A string representation of this object. [...]
write(PdfStream os) → void
Writes the object to the output stream.
inherited
writeContent(PdfStream os) → void
inherited

Operators

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

Constants

defaultGlyphWidth → const double
Default width of a glyph
0.600