struct TextStyle

A text style is a font plus size/color/material parameters, and are used to keep text looking more consistent through the application by encouraging devs to re-use styles throughout the project. See Text.MakeStyle for making a TextStyle object.

Instance Fields and Properties

   
float CharHeight Returns the maximum height of a text character using this style, in meters.
Material Material This provides a reference to the Material used by this style, so you can override certain features! Note that if you’re creating TextStyles with manually provided Materials, this Material may not be unique to this style.

Static Fields and Properties

   
TextStyle Default This is the default text style used by StereoKit.

Static Methods

   
FromFont Create a text style for use with other text functions! A text style is a font plus size/color/material parameters, and are used to keep text looking more consistent through the application by encouraging devs to re-use styles throughout the project. This overload will create a unique Material for this style based on Default.ShaderFont.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!