public void DrawStringBaseline(string fontName, float size, string text, float x, float y, Color4 color, bool underline = false, TextShadow shadow = default) { if (text == "" || size < 1) //skip empty str { return; } CreateRichTextEngine().DrawStringBaseline(fontName, size, text, x, y, color, underline, shadow); }
public void DrawStringBaseline(string fontName, float size, string text, float x, float y, float start_x, Color4 color, bool underline = false, TextShadow shadow = default) { if (!active) { throw new InvalidOperationException("Renderer2D.Start() must be called before Renderer2D.DrawString"); } if (text == "" || size < 1) //skip empty str { return; } CreateRichTextEngine().DrawStringBaseline(fontName, size, text, x, y, start_x, color, underline, shadow); }
public abstract void DrawStringCached(ref CachedRenderString cache, string fontName, float size, string text, float x, float y, Color4 color, bool underline = false, TextShadow shadow = default, TextAlignment alignment = TextAlignment.Left);
public abstract void DrawStringBaseline(string fontName, float size, string text, float x, float y, Color4 color, bool underline = false, TextShadow shadow = default);
public void DrawStringCached(ref CachedRenderString cache, string fontName, float size, string text, float x, float y, Color4 color, bool underline = false, TextShadow shadow = default, TextAlignment alignment = TextAlignment.Left) { if (text == "" || size < 1) //skip empty str { return; } CreateRichTextEngine().DrawStringCached(ref cache, fontName, size, text, x, y, color, underline, shadow, alignment); }