Table of Contents

Class XFontFamily

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

Defines a group of typefaces having a similar basic design and certain variations in styles.

public sealed class XFontFamily
Inheritance
object
XFontFamily

Constructors

XFontFamily(string)

Initializes a new instance of the XFontFamily class.

Properties

Families

Returns an array that contains all the FontFamily objects associated with the current graphics context.

Name

Gets the name of the font family.

Methods

GetCellAscent(XFontStyleEx)

Returns the cell ascent, in design units, of the XFontFamily object of the specified style.

GetCellDescent(XFontStyleEx)

Returns the cell descent, in design units, of the XFontFamily object of the specified style.

GetEmHeight(XFontStyleEx)

Gets the height, in font design units, of the em square for the specified style.

GetFamilies(XGraphics)

Returns an array that contains all the FontFamily objects available for the specified graphics context.

GetLineSpacing(XFontStyleEx)

Returns the line spacing, in design units, of the FontFamily object of the specified style. The line spacing is the vertical distance between the base lines of two consecutive lines of text.

IsStyleAvailable(XFontStyleEx)

Indicates whether the specified FontStyle enumeration is available.