Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
FontLoader Class Reference
Inheritance diagram for FontLoader:
LoadingSystem

Public Member Functions

void AddGameSubFont (string langCode, bool append, params TMPro.TMP_FontAsset[] fonts)
 Adds a new subfont to the game font settings, and enables the font. More...
 
void AddMenuSubFont (string langCode, bool append, params TMPro.TMP_FontAsset[] fonts)
 Adds a new subfont to the menu font settings More...
 
override bool IsReady ()
 
override float LoadWeight ()
 
override float ProgressFraction ()
 
override string ProgressTitle ()
 
override void StartLoad ()
 
void SwitchFontLanguage (string langCode)
 Switch the font language settings. More...
 

Protected Member Functions

void ChangeFontLanguage (FontSettings settings, string langCode)
 Change the font fallback dependency list More...
 

Protected Attributes

FontSettings GameFontSettings
 
FontSettings MenuFontSettings
 

Properties

List< TMP_FontAssetLoadedFonts [get, set]
 

Member Function Documentation

void FontLoader.AddGameSubFont ( string  langCode,
bool  append,
params TMPro.TMP_FontAsset[]  fonts 
)
inline

Adds a new subfont to the game font settings, and enables the font.

Parameters
langCodeLang code string
appendShould the new subfont append if the langCode already exist or should override
fontsList of fonts to be added to this language
void FontLoader.AddMenuSubFont ( string  langCode,
bool  append,
params TMPro.TMP_FontAsset[]  fonts 
)
inline

Adds a new subfont to the menu font settings

Parameters
langCodeLang code string
appendShould the new subfont append if the langCode already exist or should override
fontsList of fonts to be added to this language
void FontLoader.ChangeFontLanguage ( FontSettings  settings,
string  langCode 
)
inlineprotected

Change the font fallback dependency list

Parameters
langCode
override bool FontLoader.IsReady ( )
inlinevirtual

Reimplemented from LoadingSystem.

override float FontLoader.LoadWeight ( )
inlinevirtual

Reimplemented from LoadingSystem.

override float FontLoader.ProgressFraction ( )
inlinevirtual

Reimplemented from LoadingSystem.

override string FontLoader.ProgressTitle ( )
inlinevirtual

Reimplemented from LoadingSystem.

override void FontLoader.StartLoad ( )
inlinevirtual

Reimplemented from LoadingSystem.

void FontLoader.SwitchFontLanguage ( string  langCode)
inline

Switch the font language settings.

Parameters
langCode

Member Data Documentation

FontSettings FontLoader.GameFontSettings
protected
FontSettings FontLoader.MenuFontSettings
protected

Property Documentation

List<TMP_FontAsset> FontLoader.LoadedFonts
getset

The documentation for this class was generated from the following file: