Class Font
- Namespace
- TaleWorlds.TwoDimension
- Assembly
- TaleWorlds.TwoDimension.dll
public class Font
- Inheritance
-
Font
- Inherited Members
Constructors
Font(string)
public Font(string name)
Parameters
name
string
Properties
Base
public int Base { get; }
Property Value
CharacterCount
public int CharacterCount { get; }
Property Value
Characters
public Dictionary<int, BitmapFontCharacter> Characters { get; }
Property Value
CustomScale
public float CustomScale { get; }
Property Value
FontSprite
public SpritePart FontSprite { get; }
Property Value
LineHeight
public int LineHeight { get; }
Property Value
Name
public string Name { get; }
Property Value
Size
public int Size { get; }
Property Value
Smooth
public bool Smooth { get; }
Property Value
SmoothingConstant
public float SmoothingConstant { get; }
Property Value
Methods
GetCharacterWidth(char, float)
public float GetCharacterWidth(char character, float extraPadding)
Parameters
Returns
GetWordWidth(string, float)
public float GetWordWidth(string word, float extraPadding)
Parameters
Returns
ToString()
public override string ToString()
Returns
TryLoadFontFromPath(string, SpriteData)
public bool TryLoadFontFromPath(string path, SpriteData spriteData)
Parameters
path
stringspriteData
SpriteData
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).