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

using System.IO;

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

    public Page(int id, string fileName)
      : this()
    {
      this.FileName = fileName;
      this.Id = id;
    }

    #endregion  Public Constructors

    #region  Public Methods

    public override string ToString()
    {
      return string.Format("{0} ({1})", this.Id, Path.GetFileName(this.FileName));
    }

    #endregion  Public Methods

    #region  Public Properties

    public string FileName { get; set; }

    public int Id { get; set; }

    #endregion  Public Properties
  }
}

Files