4 using System.Collections.Generic;
5 using System.ComponentModel;
7 using SiliconStudio.Assets;
8 using SiliconStudio.Assets.Compiler;
9 using SiliconStudio.Core;
10 using SiliconStudio.Core.IO;
13 namespace SiliconStudio.
Paradox.Assets.SpriteFont
18 [DataContract(
"SpriteFont")]
19 [AssetFileExtension(FileExtension)]
20 [AssetCompiler(typeof(SpriteFontAssetCompiler))]
21 [ThumbnailCompiler(PreviewerCompilerNames.FontThumbnailCompilerQualifiedName)]
22 [AssetFactory(typeof(SpriteFontFactory))]
23 [
AssetDescription(
"Sprite Font",
"A sprite containing a rendered font",
true)]
29 public const string FileExtension =
".pdxfnt";
42 public string FontName {
get; set; }
49 public float Size {
get; set; }
61 public bool IsDynamic {
get; set; }
68 public char DefaultCharacter {
get; set; }
74 public UFile CharacterSet {
get; set; }
80 public List<CharacterRegion> CharacterRegions {
get; set; }
99 public bool NoPremultiply {
get; set; }
106 public float Spacing {
get; set; }
113 public float LineSpacing {
get; set; }
121 public float LineGapFactor {
get; set; }
136 public float LineGapBaseLineFactor {
get; set; }
142 public bool UseKerning {
get; set; }
146 DefaultCharacter =
' ';
147 Style = FontStyle.Regular;
148 CharacterRegions =
new List<CharacterRegion>();
149 LineGapFactor = 1.0f;
150 LineGapBaseLineFactor = 1.0f;
161 Format = FontTextureFormat.Rgba32,
170 internal string SafeCharacterSet {
get {
return CharacterSet ??
""; } }
Describes a range of consecutive characters that should be included in the font.
SharpDX.DirectWrite.Font Font
Interface to create default instance of an asset type.
Use the default mode depending on the type of the field/property.
static SpriteFontAsset Default()
Creates a default instance.
FontAntiAliasMode
Available antialias mode.
This attribute allows to define boundaries for a numeric property, and advice small and large increme...
Contains user-friendly names and descriptions of an asset type.
Defines a normalized file path. See UPath for details. This class cannot be inherited.