Table of Contents

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

int

CharacterCount

public int CharacterCount { get; }

Property Value

int

Characters

public Dictionary<int, BitmapFontCharacter> Characters { get; }

Property Value

Dictionary<int, BitmapFontCharacter>

CustomScale

public float CustomScale { get; }

Property Value

float

FontSprite

public SpritePart FontSprite { get; }

Property Value

SpritePart

LineHeight

public int LineHeight { get; }

Property Value

int

Name

public string Name { get; }

Property Value

string

Size

public int Size { get; }

Property Value

int

Smooth

public bool Smooth { get; }

Property Value

bool

SmoothingConstant

public float SmoothingConstant { get; }

Property Value

float

Methods

GetCharacterWidth(char, float)

public float GetCharacterWidth(char character, float extraPadding)

Parameters

character char
extraPadding float

Returns

float

GetWordWidth(string, float)

public float GetWordWidth(string word, float extraPadding)

Parameters

word string
extraPadding float

Returns

float

ToString()

public override string ToString()

Returns

string

TryLoadFontFromPath(string, SpriteData)

public bool TryLoadFontFromPath(string path, SpriteData spriteData)

Parameters

path string
spriteData SpriteData

Returns

bool

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).