Class ExternalFontCache

Class ExternalFontCache

Namespace: Aspose.Page
Assembly: Aspose.Page.dll (25.1.2)

Use this class to obtain font encapsulation in a form that is accepted by Aspose.Page.Device.

public class ExternalFontCache

Inheritance

objectExternalFontCache

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ExternalFontCache()

public ExternalFontCache()

Methods

CreateFontByFamilyName(string, float, FontStyle)

Creates System.Drawing.Font by font family name, style and size.

public static Font CreateFontByFamilyName(string familyName, float size, FontStyle style)

Parameters

familyName string

Font family name.

size float

Font size in points (one point is 1/72 of inch).

style FontStyle

Font style.

Returns

Font

Returns Font object.

FetchDrFont(string, float, FontStyle)

Fetches Aspose.Page.Font.DrFont by font family name, size and style.

public static DrFont FetchDrFont(string familyName, float sizePoints, FontStyle style)

Parameters

familyName string

Font family name.

sizePoints float

Font size in points (one point is 1/72 of inch).

style FontStyle

Font style.

Returns

DrFont

Returns DrFont

 English