private static LGuiVec2 OnGetTextSize(string Text, LGuiFont GuiFont) { var Font = FontCache.GetOrCreate(GuiFont); var Size = Device_.MeasureString(Text, Font, 0, GdiCommandExecutor.FontStringFormat); return(new LGuiVec2(Size.Width, Font.Height)); }
public override void DrawText(string Text, LGuiVec2 Pos, LGuiColor Color, LGuiFont Font) { Device_.DrawString(Text, FontCache.GetOrCreate(Font), BrushCache.GetOrCreate(Color), Pos.X, Pos.Y, FontStringFormat); }