using System; using System.Collections.Generic; using System.Text; namespace Cosmos.System.Graphics.Fonts { /// /// Base class for fonts. /// public abstract class Font { /// /// Get font pure data. /// public byte[] Data { get; } /// /// Get font height. /// public byte Height { get; } /// /// Get font Width. /// public byte Width { get; } /// /// Used to draw font. /// /// byteToConvert /// bitToReturn public bool ConvertByteToBitAddres(byte byteToConvert, int bitToReturn) { int mask = 1 << (bitToReturn - 1); return (byteToConvert & mask) != 0; } public Font(byte aWidth, byte aHeight, byte[] aData) { Width = aWidth; Height = aHeight; Data = aData; } } }