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 abstract byte[] Data { get; } /// /// Get font height. /// public abstract byte Height { get; } /// /// Get font Width. /// public abstract byte Width { get; } /// /// Set font file. /// /// Font file. public abstract void SetFont(byte[] aFileData); /// /// Used to draw font. /// /// byteToConvert /// bitToReturn public bool ConvertByteToBitAddres(byte byteToConvert, int bitToReturn) { int mask = 1 << (bitToReturn - 1); return (byteToConvert & mask) != 0; } } }