4 using System.Collections.Generic;
6 using SiliconStudio.Core;
7 using SiliconStudio.Core.Serialization;
9 namespace SiliconStudio.Paradox.Assets.SpriteFont
14 [DataContract(
"CharacterRegion")]
26 throw new ArgumentException();
50 return regions.SelectMany(region => region.GetCharacters()).Distinct();
55 return Default.GetCharacters();
65 for (
char c = Start; c <= End; c++)
static IEnumerable< Char > Flatten(IEnumerable< CharacterRegion > regions)
Describes a range of consecutive characters that should be included in the font.
Use the default mode depending on the type of the field/property.
char Start
The first character to include in the region.
char End
The second character to include in the region.
CharacterRegion(char start, char end)
Initializes a new instance of the CharacterRegion struct.