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
Properties
CurrentLanguage
public ILanguage CurrentLanguage { get; set; }
Property Value
DrawObject2D
public DrawObject2D DrawObject2D { get; }
Property Value
Font
public Font Font { get; set; }
Property Value
FontSize
public float FontSize { get; set; }
Property Value
HorizontalAlignment
public TextHorizontalAlignment HorizontalAlignment { get; set; }
Property Value
LineCount
public int LineCount { get; }
Property Value
ScaleToFitTextInLayout
public float ScaleToFitTextInLayout { get; }
Property Value
SkipLineOnContainerExceeded
public bool SkipLineOnContainerExceeded { get; set; }
Property Value
Value
public string Value { get; set; }
Property Value
VerticalAlignment
public TextVerticalAlignment VerticalAlignment { get; set; }
Property Value
Methods
GetPreferredSize(bool, float, bool, float, SpriteData, float)
public Vector2 GetPreferredSize(bool fixedWidth, float widthSize, bool fixedHeight, float heightSize, SpriteData spriteData, float renderScale)
Parameters
fixedWidthboolwidthSizefloatfixedHeightboolheightSizefloatspriteDataSpriteDatarenderScalefloat
Returns
UpdateSize(int, int)
public void UpdateSize(int width, int height)
Parameters
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).