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); }
public void SetFace(EFontFace face) { SetFace(face.ToFaceName()); }
public static string ToFaceName(this EFontFace face) { return(Names[(int)face]); }
public static bool SetFontFace(EFontFace face) { return(SetFontFace(face.ToFaceName())); }