Class FixedSizeFont
Implementation of a IFont that uses a common array for all characters. The number of bytes per character is constant and zero values between the characters are trimmed.
public class FixedSizeFont : IFont
- Inheritance
-
FixedSizeFont
- Implements
Constructors
FixedSizeFont(int, byte[], int)
Constructs FixedSizeFont instance
public FixedSizeFont(int bytesPerCharacter, byte[] data, int spaceWidth = 3)
Parameters
bytesPerCharacterintnumber of bytes per character
databyte[]Font data
spaceWidthintSpace width
Properties
this[char]
Get character information
public ListByte this[char chr] { get; }
Parameters
chrchar