Table of Contents

Class Text

Namespace
TaleWorlds.TwoDimension
Assembly
TaleWorlds.TwoDimension.dll
public class Text : IText
Inheritance
Text
Implements
Inherited Members

Constructors

Text(int, int, Font, Func<int, Font>)

public Text(int width, int height, Font bitmapFont, Func<int, Font> getUsableFontForCharacter)

Parameters

width int
height int
bitmapFont Font
getUsableFontForCharacter Func<int, Font>

Properties

CurrentLanguage

public ILanguage CurrentLanguage { get; set; }

Property Value

ILanguage

DrawObject2D

public DrawObject2D DrawObject2D { get; }

Property Value

DrawObject2D

Font

public Font Font { get; set; }

Property Value

Font

FontSize

public float FontSize { get; set; }

Property Value

float

HorizontalAlignment

public TextHorizontalAlignment HorizontalAlignment { get; set; }

Property Value

TextHorizontalAlignment

LineCount

public int LineCount { get; }

Property Value

int

ScaleToFitTextInLayout

public float ScaleToFitTextInLayout { get; }

Property Value

float

SkipLineOnContainerExceeded

public bool SkipLineOnContainerExceeded { get; set; }

Property Value

bool

Value

public string Value { get; set; }

Property Value

string

VerticalAlignment

public TextVerticalAlignment VerticalAlignment { get; set; }

Property Value

TextVerticalAlignment

Methods

GetPreferredSize(bool, float, bool, float, SpriteData, float)

public Vector2 GetPreferredSize(bool fixedWidth, float widthSize, bool fixedHeight, float heightSize, SpriteData spriteData, float renderScale)

Parameters

fixedWidth bool
widthSize float
fixedHeight bool
heightSize float
spriteData SpriteData
renderScale float

Returns

Vector2

UpdateSize(int, int)

public void UpdateSize(int width, int height)

Parameters

width int
height int

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