BitmapFontParser/Kerning.cs

Download

BitmapFontParser.zip

(500.33 KB | 02 January 2012 )

Source code for a parser for AngelCode BMFont text and XML font formats.

Donate

Contents of BitmapFontParser.zip/BitmapFontParser/Kerning.cs

namespace Cyotek.Drawing.BitmapFont
{
  public struct Kerning
  {
    #region  Public Constructors

    public Kerning(char firstCharacter, char secondCharacter, int amount)
      : this()
    {
      this.FirstCharacter = firstCharacter;
      this.SecondCharacter = secondCharacter;
      this.Amount = amount;
    }

    #endregion  Public Constructors

    #region  Public Methods

    public override string ToString()
    {
      return string.Format("{0} to {1} = {2}", this.FirstCharacter, this.SecondCharacter, this.Amount);
    }

    #endregion  Public Methods

    #region  Public Properties

    public char FirstCharacter { get; set; }

    public char SecondCharacter { get; set; }

    public int Amount { get; set; }

    #endregion  Public Properties
  }
}

Files