Class FontSettings

Class FontSettings

Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)

Specifies font settings used when rendering project’s view.

public sealed class FontSettings

Inheritance

objectFontSettings

Inherited Members

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

Constructors

FontSettings()

public FontSettings()

Properties

DefaultFontName

Gets or sets the default (or fallback) font for rendering.

public string DefaultFontName { get; set; }

Property Value

string

FontResolveCallback

Gets or sets a callback which can be used to customize resolved fonts.

public FontResolveCallbackDelegate FontResolveCallback { get; set; }

Property Value

FontResolveCallbackDelegate

UseProjectDefaultFont

Gets or sets a value indicating whether the default font must be used for rendering.

public bool UseProjectDefaultFont { get; set; }

Property Value

bool

Remarks

When the value is False and DefaultFontName is specified, the rendering engine will utilize the font specified by DefaultFontName as a fallback font. Otherwise ‘Arial’ (if installed) or ‘Generic Sans Serif’ fonts are used as a fallback font.
The fallback font is utilized during the rendering of project view when a text style references a font that is not installed on the current operating system. For greater control over font resolution you can use Aspose.Tasks.FontSettings.FontResolveCallback callback.

Methods

SetFontFolders(string[], bool)

Sets the folders where Aspose.Tasks looks for TrueType fonts when rendering project’s view.

public void SetFontFolders(string[] fontFolders, bool recursive)

Parameters

fontFolders string[]

An array of folders that contain TrueType fonts.

recursive bool

If true the specified folders will be scanned recursively.