Class TextRenderer
Shapes scalable font text and caches its transparent texture.
public sealed class TextRenderer
- Inheritance
-
TextRenderer
- Inherited Members
Methods
Draw(SpriteBatch, FontAsset, string, float, Vector2, Color?, CoordinateSpace, float)
public void Draw(SpriteBatch spriteBatch, FontAsset font, string text, float fontSize, Vector2 position, Color? color = null, CoordinateSpace space = CoordinateSpace.Screen, float depth = 0)
Parameters
spriteBatchSpriteBatchfontFontAssettextstringfontSizefloatpositionVector2colorColorspaceCoordinateSpacedepthfloat
Render(FontAsset, string, float)
public Texture2D Render(FontAsset fontAsset, string text, float fontSize)