示例#1
0
 public FontInfo(EFontFace fontFace, EFontSize fontSize, EFontWeight weight = EFontWeight.Normal)
 {
     SizeInBytes = (uint)Marshal.SizeOf <FontInfo>();
     FontSize    = new Coord(0, (int)fontSize);
     FontWeight  = weight;
     FontIndex   = 0;
     FontFamily  = 54;            //type face font
     SetFace(fontFace);
 }
示例#2
0
 public void SetFace(EFontFace face)
 {
     SetFace(face.ToFaceName());
 }
示例#3
0
 public static string ToFaceName(this EFontFace face)
 {
     return(Names[(int)face]);
 }
示例#4
0
 public static bool SetFontFace(EFontFace face)
 {
     return(SetFontFace(face.ToFaceName()));
 }