Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameFontStyle"/> struct.
 /// </summary>
 /// <param name="familyAndSize">Font family and size.</param>
 public GameFontStyle(GameFontFamilyAndSize familyAndSize)
 {
     this.FamilyAndSize = familyAndSize;
     this.Weight        = this.SkewStrength = 0f;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameFontStyle"/> struct.
 /// </summary>
 /// <param name="family">Font family.</param>
 /// <param name="size">Size in points.</param>
 public GameFontStyle(GameFontFamily family, float size)
 {
     this.FamilyAndSize = GetRecommendedFamilyAndSize(family, size);
     this.Weight        = this.SkewStrength = 0f;
 }