PdfFont class abstract
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
no setter
- descent → double
-
Spans the distance between the baseline and the lowest descending glyph
no setter
- elapsedStopwatch → int
-
no setterinherited
- fontName → String
-
The font's real name
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- inUse ↔ bool
-
getter/setter pairinherited
- name → String
-
Internal name
no setter
- objgen → int
-
This is the generation number for this object.
finalinherited
- objser → int
-
This is the unique serial number for this object.
finalinherited
-
params
→ PdfDict<
PdfDataType> -
finalinherited
- pdfDocument → PdfDocument
-
This allows any Pdf object to refer to the document being constructed.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → PdfSettings
-
finalinherited
- size ↔ int
-
getter/setter pairinherited
- subtype → String
-
The df type of the font, usually /Type1
final
- unitsPerEm → int
-
Internal units per
no setter
Methods
-
debugFill(
String value) → void -
inherited
-
glyphMetrics(
int charCode) → PdfFontMetrics - Calculate the PdfFontMetrics for this glyph
-
isRuneSupported(
int charCode) → bool - is this Rune supported by this font
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
output(
PdfStream s) → int -
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
-
setInsertion(
PdfStream os, [int size = _maxSize]) → void -
inherited
-
startStopwatch(
) → void -
inherited
-
stopStopwatch(
) → void -
inherited
-
stringMetrics(
String s, {double letterSpacing = 0}) → PdfFontMetrics - Calculate the PdfFontMetrics for this string
-
stringSize(
String s) → PdfPoint - Calculate the unit size of this string
-
toString(
) → String - A string representation of this object.
-
writeContent(
PdfStream s) → void -
inherited
-
writeDebug(
PdfStream os) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited