Class
FontFamily

Identifies a font family by its source name for use across document rendering and measurement routines.

Definition

Namespace:Telerik.Documents.Core.Fonts

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public class FontFamily

Inheritance: objectFontFamily

Constructors

FontFamily(string)

Initializes a new instance of the FontFamily class.

Declaration

cs-api-definition
public FontFamily(string familyName)

Parameters

familyName

string

Properties

Source

Gets the canonical family name string used to resolve faces during layout and embedding.

Declaration

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

Property Value

string

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 the default hash function.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()

ToString()

Return familyName if there is one or String.Empty for unnamed font family.

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()