BitmapFontParser/Character.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/Character.cs

using System.Drawing;

namespace Cyotek.Drawing.BitmapFont
{
  public struct Character
  {
    #region  Public Methods

    public override string ToString()
    {
      return this.Char.ToString();
    }

    #endregion  Public Methods

    #region  Public Properties

    public int Channel { get; set; }

    public Rectangle Bounds { get; set; }

    public Point Offset { get; set; }

    public char Char { get; set; }

    public int TexturePage { get; set; }

    public int XAdvance { get; set; }

    #endregion  Public Properties
  }
}

Files