M&B: Bannerlord 1.2.10
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.TwoDimension.Font Class Reference

Public Member Functions

 Font (string name)
 
bool TryLoadFontFromPath (string path, SpriteData spriteData)
 
float GetWordWidth (string word, float extraPadding)
 
float GetCharacterWidth (char character, float extraPadding)
 
override string ToString ()
 

Properties

string Name [get]
 
int Size [get]
 
int LineHeight [get]
 
int Base [get]
 
int CharacterCount [get]
 
float SmoothingConstant [get]
 
float CustomScale = 1f [get]
 Used for scaling font size. Already applied to Size.
 
bool Smooth [get]
 
SpritePart FontSprite [get]
 
Dictionary< int, BitmapFontCharacterCharacters [get]
 

Constructor & Destructor Documentation

◆ Font()

TaleWorlds.TwoDimension.Font.Font ( string name)

Member Function Documentation

◆ TryLoadFontFromPath()

bool TaleWorlds.TwoDimension.Font.TryLoadFontFromPath ( string path,
SpriteData spriteData )

◆ GetWordWidth()

float TaleWorlds.TwoDimension.Font.GetWordWidth ( string word,
float extraPadding )

◆ GetCharacterWidth()

float TaleWorlds.TwoDimension.Font.GetCharacterWidth ( char character,
float extraPadding )

◆ ToString()

override string TaleWorlds.TwoDimension.Font.ToString ( )

Property Documentation

◆ Name

string TaleWorlds.TwoDimension.Font.Name
get

◆ Size

int TaleWorlds.TwoDimension.Font.Size
get

◆ LineHeight

int TaleWorlds.TwoDimension.Font.LineHeight
get

◆ Base

int TaleWorlds.TwoDimension.Font.Base
get

◆ CharacterCount

int TaleWorlds.TwoDimension.Font.CharacterCount
get

◆ SmoothingConstant

float TaleWorlds.TwoDimension.Font.SmoothingConstant
get

◆ CustomScale

float TaleWorlds.TwoDimension.Font.CustomScale = 1f
get

◆ Smooth

bool TaleWorlds.TwoDimension.Font.Smooth
get

◆ FontSprite

SpritePart TaleWorlds.TwoDimension.Font.FontSprite
get

◆ Characters

Dictionary<int, BitmapFontCharacter> TaleWorlds.TwoDimension.Font.Characters
get