PdfTtfFont class Null safety

Inheritance

Constructors

PdfTtfFont(PdfDocument pdfDocument, ByteData bytes, {bool protect = false})
Constructs a PdfTtfFont

Properties

ascent double
Spans the distance between the baseline and the top of the glyph that reaches farthest from the baseline
read-only, override
descent double
Spans the distance between the baseline and the lowest descending glyph
read-only, override
descriptor ↔ PdfFontDescriptor
read / write
file ↔ PdfObjectStream
read / write
font TtfParser
final
fontName String
The font's real name
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
Internal name
read-only, inherited
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
read-only, override
unicodeCMap ↔ PdfUnicodeCmap
read / write
unitsPerEm int
Internal units per
read-only, override
widthsObject ↔ PdfArrayObject
read / write

Methods

glyphMetrics(int charCode) PdfFontMetrics
Calculate the PdfFontMetrics for this glyph
override
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
override
putText(PdfStream stream, String text) → void
Draw some text
override
ref() → PdfIndirect
Returns the unique serial number in Pdf format
inherited
stringMetrics(String s, {double letterSpacing = 0}) PdfFontMetrics
Calculate the PdfFontMetrics for this string
override
stringSize(String s) PdfPoint
Calculage the unit size of this string
inherited
toString() String
A string representation of this object. [...]
inherited
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