Table of Contents

Class TextRenderer

Namespace
Axolotl2D.Rendering
Assembly
Axolotl2D.dll

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

spriteBatch SpriteBatch
font FontAsset
text string
fontSize float
position Vector2
color Color
space CoordinateSpace
depth float

Render(FontAsset, string, float)

public Texture2D Render(FontAsset fontAsset, string text, float fontSize)

Parameters

fontAsset FontAsset
text string
fontSize float

Returns

Texture2D