A game about forced loneliness, made by TACStudios
at master 18 lines 1.8 kB view raw view rendered
1### Alignment 2 3The horizontal and vertical alignment options control how text is placed in the display area. 4 5![Example image](../images/TMP_Object_Alignment.png) 6 7|Property:||Function:| 8|---------|-|---------| 9|**[Horizontal Alignment Options]**|| 10||Left, Center, Right|Position the text horizontally in the display area, without changing the text itself.| 11||Justified, Flush|Stretch the text to fill the width of the display area by increasing the distance between words and characters. <br/><br/> The **Wrap Mix** option controls the balance between word and character spacing. <br/><br/> **Justified** mode does not stretch the last lines of paragraphs, while **Flush** mode does.| 12||Geometry Center| Centers the text based on the mesh rather than the text metrics. <br/><br/> The difference is not always noticeable, but in some cases this mode yields better looking results than regular Center alignment.| 13|**[Vertical Alignment Options]**||| 14||Top, Middle, Bottom| Position the text vertically in the display area, without changing the text itself.| 15||Baseline| Position the text so the baseline of the line is aligned with the middle of the display area. <br/><br/> This is useful when working with a single line of text. | 16||Midline| Use this as an alternative to Middle alignnment. <br/><br/> This option determine vertical placement using the bounds of the text mesh, rather than [line metrics](FontAssets.md#LineMetrics). This is useful in tight spaces when ascenders and descenders might otherwise extend too far. | 17||Capline| Position the text so the middle of the first the line is aligned with the middle of the display area.| 18|**Wrap Mix (W <-> C)**||Adjust the balance between extra word spacing and extra character spacing when horizontal alignment is set to **Justified** or **Flush**.|