/// <summary> /// Creates a default instance. /// </summary> /// <returns>A default instance of <see cref="SpriteFontAsset"/>.</returns> public static SpriteFontAsset Default() { var font = new SpriteFontAsset { Format = FontTextureFormat.Rgba32, FontName = "Arial", Size = 16, }; font.CharacterRegions.Add(new CharacterRegion(' ', (char)127)); return(font); }
/// <summary> /// Creates a default instance. /// </summary> /// <returns>A default instance of <see cref="SpriteFontAsset"/>.</returns> public static SpriteFontAsset Default() { var font = new SpriteFontAsset { Format = FontTextureFormat.Rgba32, FontName = "Arial", Size = 16, }; font.CharacterRegions.Add(new CharacterRegion(' ', (char)127)); return font; }