ClassFontProperties
Bundles the family, style, and weight used to resolve and measure fonts in document layout; cached for fast lookups.
Definition
Namespace:Telerik.Windows.Documents.Core.Fonts
Assembly:Telerik.Windows.Documents.Core.dll
Syntax:
public class FontProperties
Inheritance: objectFontProperties
Constructors
FontProperties(FontFamily)
Initializes a new instance of the FontProperties class.
Declaration
public FontProperties(FontFamily fontFamily)
Parameters
fontFamily
FontFamily
The font family.
FontProperties(FontFamily, FontStyle, FontWeight)
Initializes a new instance of the FontProperties class.
Declaration
public FontProperties(FontFamily fontFamily, FontStyle fontStyle, FontWeight fontWeight)
Parameters
fontFamily
FontFamily
The font family.
fontStyle
FontStyle
The font style.
fontWeight
FontWeight
The font weight.
Properties
FontFamily
Gets the font family descriptor backing this instance.
Declaration
public FontFamily FontFamily { get; }
Property Value
FontFamily
The font family.
FontFamilyName
Gets the font family name used for face resolution during layout and rendering.
Declaration
public string FontFamilyName { get; }
Property Value
The name of the font family.
FontStyle
Gets the slant style (for example Normal or Italic) used when resolving the font face.
Declaration
public FontStyle FontStyle { get; }
Property Value
FontStyle
The font style.
FontWeight
Gets the selected weight, which controls glyph stroke thickness and can affect line breaks.
Declaration
public FontWeight FontWeight { get; }
Property Value
FontWeight
The font weight.
IsMonoSpaced
Indicates whether the resolved family is monospaced, which can impact measurement and alignment.
Declaration
public bool IsMonoSpaced { get; }
Property Value
The is mono spaced.
Methods
GetHashCode()
Serves as a hash function for a particular type.