예제 #1
0
        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));
        }
예제 #2
0
 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);
 }