Esempio n. 1
0
        public static bool SetFontSize(ETerminalFontSize size)
        {
            FontInfo info = GetFontInfo();

            info.FontSize = size.ToCoord();
            info.SetFace(EFontFaceExt.TERMINAL);
            return(SetFont(info));
        }
Esempio n. 2
0
 public FontInfo(ETerminalFontSize size, EFontWeight weight = EFontWeight.Normal)
 {
     SizeInBytes = (uint)Marshal.SizeOf <FontInfo>();
     FontSize    = size.ToCoord();
     FontWeight  = weight;
     FontIndex   = 0;
     FontFamily  = 48;            //magic numbers, if set to 54 font size width is ignored
     SetFace(EFontFaceExt.TERMINAL);
 }
Esempio n. 3
0
 public static Coord ToCoord(this ETerminalFontSize size)
 {
     return(Sizes[(int)size]);
 }
Esempio n. 4
0
 public void SetSize(ETerminalFontSize size)
 {
     FontFamily = 48;
     FontSize   = size.ToCoord();
 }