Class
FontProperties

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:

cs-api-definition
public class FontProperties

Inheritance: objectFontProperties

Constructors

FontProperties(FontFamily)

Initializes a new instance of the FontProperties class.

Declaration

cs-api-definition
public FontProperties(FontFamily fontFamily)

Parameters

fontFamily

FontFamily

The font family.

FontProperties(FontFamily, FontStyle, FontWeight)

Initializes a new instance of the FontProperties class.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public string FontFamilyName { get; }

Property Value

string

The name of the font family.

FontStyle

Gets the slant style (for example Normal or Italic) used when resolving the font face.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public bool IsMonoSpaced { get; }

Property Value

bool

The is mono spaced.

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()