Skip to content

TallComponents.UnoPdf.Client

TallComponents.UnoPdf.Client.Models.Pdf.Fonts

FontModel Class

A font is used to typeset text.

csharp
public class FontModel

Inheritance System.Object 🡒 FontModel

Remarks

There are 14 standard fonts available in PDF or you can load a TrueType font.

Properties
AscenderThe ascender of this font at a font size of 1 pt. Multiply the ascender with the font size to
get the ascender in points.
BaselineOffsetThe distance in points between the lower extreme of a font and the visual baseline for a font of size 1 pt.
Multiply the value of this property with the font size to get the distance in points.
BoldWhether this font is bold by design.
DecorationLineWidthThe width of decoration lines for a font with a size of 1 pt.
DescenderThe descender of this font at a font size of 1 pt. Multiply the descender with the font size to
get the descender in points.
EmbedModeHow the font is stored inside the PDF.
FamilyNameThe family name of the font.
GlyphsGlyph data about all glyphs in the font program.
HeightThe height of this font at a font size of 1 pt. Multiply the height with the font size to
get the height in points.
ItalicWhether this font is italic by design.
ItalicAngleThe italic angle the font designer has assigned to this font (counter-clockwise from vertical).
LicensingRightsFont licensing rights.
LineGapThe height of the line gap specified inside this font at a font size of 1 pt. Multiply the line gap with the font size to
get the line gap in points.
NameThe name of the font.
PathThe path of the TrueType file of this font.
StrikeOutOffsetThe distance in points between the lower extreme of a font and the position of a strikethrough for a font of size 1 pt.
Multiply the value of this property with the font size to get the distance in points.
SubscriptOffsetThe superscript offset is the distance in points between the lower extreme of a font and the
lower extreme where to place superscript text for a font of size 1 pt.
Multiply with the font size to get the offset in points.
SubscriptScaleThe subscript offset is the distance in points between the lower extreme of a font and the
lower extreme where to place subscript text for a font of size 1 pt.
Multiply with the font size to get the offset in points.
SuperscriptScaleThe superscript scale of this font. Multiply with the font size to get the superscript font size.
UnderlineOffsetThe distance in points between the lower extreme of a font and the position of an underline for a font of size 1 pt.
Multiply the value of this property with the font size to get the distance in points.
WeightThe Weight this font has by design [100...900]
XHeightThe height of the small letter x this font at a font size of 1 pt. Multiply the x-height with the font size to
get the x-height in points.