Namespace: PdfSharp.Drawing
Defines a group of typefaces having a similar basic design and certain variations in styles.
public sealed class XFontFamily
Inheritance Object → XFontFamily
Gets the name of the font family.
public string Name { get; }
Use platform API directly.
Returns an array that contains all the FontFamily objects associated with the current graphics context.
public static XFontFamily[] Families { get; }
Initializes a new instance of the XFontFamily class.
public XFontFamily(string familyName)
familyName
String
The family name of a font.
internal static XFontFamily CreateFromName_not_used(string name, bool createPlatformFamily)
name
String
createPlatformFamily
Boolean
An XGlyphTypeface for a font source that comes from a custom font resolver creates a solitary font family exclusively for it.
internal static XFontFamily GetOrCreateFontFamily(string name)
name
String
Returns the cell ascent, in design units, of the XFontFamily object of the specified style.
public int GetCellAscent(XFontStyleEx style)
style
XFontStyleEx
Returns the cell descent, in design units, of the XFontFamily object of the specified style.
public int GetCellDescent(XFontStyleEx style)
style
XFontStyleEx
Gets the height, in font design units, of the em square for the specified style.
public int GetEmHeight(XFontStyleEx style)
style
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.
public int GetLineSpacing(XFontStyleEx style)
style
XFontStyleEx
Indicates whether the specified FontStyle enumeration is available.
public bool IsStyleAvailable(XFontStyleEx style)
style
XFontStyleEx
Use platform API directly.
Returns an array that contains all the FontFamily objects available for the specified graphics context.
public static XFontFamily[] GetFamilies(XGraphics graphics)
graphics
XGraphics