/*****************************************************************
 * CodeName: VJProjector.Net
 * Copyright: Virtual Media Systems, S.L. 2003
 * Assembly: LibGFX
 * Type: C# Source Code
 * Version: 1.0
 * Description: Font System Interface
 * 
 * Revisions
 * ------------------------------------------------
 * [F] 08/03/2003, Jcl - Shaping the thing up
 * 
 *****************************************************************/
 
using System;
using VJProjector.GFX.Immerse.Types;
using VJProjector.GFX.Immerse.Math;
 
namespace VJProjector.GFX.Immerse.Render
{
  public enum FontVerticalAlignment 
  {
    Top = 1,
    Middle = 0,
    Bottom = 2,
  }
 
  public enum FontHorizontalAlignment 
  {
    Left = 0,
    Center = 1,
    Right = 2,
  }
 
	public interface IFont
  {
    string FontName { get; set; }
    PointEX measureString(string text);
    void RenderString(string text, FontVerticalAlignment valign, FontHorizontalAlignment halign, Vector scale);
    void RenderString(string text, FontVerticalAlignment valign, FontHorizontalAlignment halign);
    void RenderString(string text, Vector scale);
    void RenderString(string text);
	}
}
 

Download IFont.cs IFont.cs - 1.2 KB