Aspose.Tasks for C++
Aspose::Tasks::FontSettings Class Referencefinal

Specifies font settings used when rendering project's view. More...

#include <FontSettings.h>

Inherits System::Object.

Public Member Functions

System::String get_DefaultFontName () const
 Gets the default (or fallback) font for rendering. More...
 
void set_DefaultFontName (const System::String &value)
 Sets the default (or fallback) font for rendering. More...
 
bool get_UseProjectDefaultFont () const
 Gets a value indicating whether the default font must be used for rendering. More...
 
void set_UseProjectDefaultFont (bool value)
 Sets a value indicating whether the default font must be used for rendering. More...
 
FontResolveCallbackDelegate get_FontResolveCallback () const
 Gets a callback which can be used to customize resolved fonts. More...
 
void set_FontResolveCallback (FontResolveCallbackDelegate value)
 Sets a callback which can be used to customize resolved fonts. More...
 
void SetFontFolders (const System::ArrayPtr< System::String > &fontFolders, bool recursive)
 Sets the folders where Aspose.Tasks looks for TrueType fonts when rendering project's view. More...
 

Detailed Description

Specifies font settings used when rendering project's view.

Member Function Documentation

◆ get_DefaultFontName()

System::String Aspose::Tasks::FontSettings::get_DefaultFontName ( ) const

Gets the default (or fallback) font for rendering.

◆ get_FontResolveCallback()

FontResolveCallbackDelegate Aspose::Tasks::FontSettings::get_FontResolveCallback ( ) const

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

◆ get_UseProjectDefaultFont()

bool Aspose::Tasks::FontSettings::get_UseProjectDefaultFont ( ) const

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

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 FontResolveCallback callback.

◆ set_DefaultFontName()

void Aspose::Tasks::FontSettings::set_DefaultFontName ( const System::String &  value)

Sets the default (or fallback) font for rendering.

◆ set_FontResolveCallback()

void Aspose::Tasks::FontSettings::set_FontResolveCallback ( FontResolveCallbackDelegate  value)

Sets a callback which can be used to customize resolved fonts.

◆ set_UseProjectDefaultFont()

void Aspose::Tasks::FontSettings::set_UseProjectDefaultFont ( bool  value)

Sets a value indicating whether the default font must be used for rendering.

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 FontResolveCallback callback.

◆ SetFontFolders()

void Aspose::Tasks::FontSettings::SetFontFolders ( const System::ArrayPtr< System::String > &  fontFolders,
bool  recursive 
)

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

Parameters
fontFoldersAn array of folders that contain TrueType fonts.
recursiveIf true the specified folders will be scanned recursively.