Skip to main content

FontFamily

Version: 12.0

cete.dynamicpdf.fontfamily

FontFamily​

Represents a font family.

public class FontFamily
Public Class FontFamily

Inheritance: Object → FontFamily

Derived: GoogleFontFamily

Licensing Info​

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Remarks​

See the Font Families topic for more on font families.

Constructors​

FontFamily(String, Font)​

Initializes a new instance of the FontFamily class.

public FontFamily(string name, Font font)
Public Sub New (name As String, font As Font)

Parameters​

Name of font family.

Font representing all styles.

Licensing Info​

This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

FontFamily(String, Font, Font, Font, Font)​

Initializes a new instance of the FontFamily class.

public FontFamily(string name, Font regular, Font bold, Font italic, Font boldItalic)
Public Sub New (name As String, regular As Font, bold As Font, italic As Font, boldItalic As Font)

Parameters​

Name of font family.

Font representing regular.

Font representing bold.

Font representing italic.

Font representing bold italic.

Licensing Info​

This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Properties​

Bold​

Gets the bold font.

public Font Bold { get; }
Public Property Bold As Font

Property Value​

Font

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

BoldItalic​

Gets the bold italic font.

public Font BoldItalic { get; }
Public Property BoldItalic As Font

Property Value​

Font

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Courier​

Gets the core Courier font family.

public static FontFamily Courier { get; }
Public Shared Property Courier As FontFamily

Property Value​

FontFamily

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Helvetica​

Gets the core Helvetica font family.

public static FontFamily Helvetica { get; }
Public Shared Property Helvetica As FontFamily

Property Value​

FontFamily

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Italic​

Gets the italic font.

public Font Italic { get; }
Public Property Italic As Font

Property Value​

Font

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Name​

Gets the name of the font family.

public string Name { get; }
Public Property Name As String

Property Value​

String

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Regular​

Gets the regular font.

public Font Regular { get; }
Public Property Regular As Font

Property Value​

Font

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Symbol​

Gets the core Symbol font family.

public static FontFamily Symbol { get; }
Public Shared Property Symbol As FontFamily

Property Value​

FontFamily

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Times​

Gets the core Times font family.

public static FontFamily Times { get; }
Public Shared Property Times As FontFamily

Property Value​

FontFamily

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ZapfDingbats​

Gets the core Zapf Dingbats font family.

public static FontFamily ZapfDingbats { get; }
Public Shared Property ZapfDingbats As FontFamily

Property Value​

FontFamily

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

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

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Google(String)​

Gets the Google Font Family for the given name.

public static GoogleFontFamily Google(string familyName)
Shared Function Google(familyName As String) As GoogleFontFamily

Parameters​

The name of the Google font.

Returns​

Returns a GoogleFontFamily object or null if it doesn't exist.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF