public Point MeasureStringCached(ref CachedRenderString cache, string fontName, float size, string text, bool underline = false, TextAlignment alignment = TextAlignment.Left) { if (text == "" || size < 1) //skip empty str { return(Point.Zero); } return(CreateRichTextEngine().MeasureStringCached(ref cache, fontName, size, text, underline, alignment)); }
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); }
public abstract Point MeasureStringCached(ref CachedRenderString cache, string fontName, float size, string text, bool underline, TextAlignment alignment);
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);