Appearance
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 | |
---|---|
Ascender | The ascender of this font at a font size of 1 pt. Multiply the ascender with the font size to get the ascender in points. |
BaselineOffset | The 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. |
Bold | Whether this font is bold by design. |
DecorationLineWidth | The width of decoration lines for a font with a size of 1 pt. |
Descender | The descender of this font at a font size of 1 pt. Multiply the descender with the font size to get the descender in points. |
EmbedMode | How the font is stored inside the PDF. |
FamilyName | The family name of the font. |
Glyphs | Glyph data about all glyphs in the font program. |
Height | The height of this font at a font size of 1 pt. Multiply the height with the font size to get the height in points. |
Italic | Whether this font is italic by design. |
ItalicAngle | The italic angle the font designer has assigned to this font (counter-clockwise from vertical). |
LicensingRights | Font licensing rights. |
LineGap | The 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. |
Name | The name of the font. |
Path | The path of the TrueType file of this font. |
StrikeOutOffset | The 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. |
SubscriptOffset | The 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. |
SubscriptScale | The 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. |
SuperscriptScale | The superscript scale of this font. Multiply with the font size to get the superscript font size. |
UnderlineOffset | The 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. |
Weight | The Weight this font has by design [100...900] |
XHeight | The 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. |