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

Public Member Functions

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

Public Attributes

readonly string Name
 

Protected Member Functions

 Font (string name)
 

Properties

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

Constructor & Destructor Documentation

◆ Font() [1/2]

TaleWorlds.TwoDimension.Font.Font ( string  name,
string  path,
SpriteData  spriteData 
)

◆ Font() [2/2]

TaleWorlds.TwoDimension.Font.Font ( string  name)
protected

Member Function Documentation

◆ 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 ( )

Member Data Documentation

◆ Name

readonly string TaleWorlds.TwoDimension.Font.Name

Property Documentation

◆ Size

int TaleWorlds.TwoDimension.Font.Size
get

◆ Smooth

bool TaleWorlds.TwoDimension.Font.Smooth
get

◆ SmoothingConstant

float TaleWorlds.TwoDimension.Font.SmoothingConstant
get

◆ CustomScale

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

◆ LineHeight

int TaleWorlds.TwoDimension.Font.LineHeight
get

◆ Base

int TaleWorlds.TwoDimension.Font.Base
get

◆ CharacterCount

int TaleWorlds.TwoDimension.Font.CharacterCount
get

◆ FontSprite

SpritePart TaleWorlds.TwoDimension.Font.FontSprite
get

◆ Characters

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