struct Pixelfont::Grapheme

Overview

A Bitmap for a character

.###.
#...#
#####
#...#
#...#

becomes Bytes[0b01110_10001, 0b11111_10001, 0b10001_0000]

Defined in:

pixelfont/grapheme.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : UInt16, height : UInt16, data : Slice(UInt8)) #

[View source]

Instance Method Detail

def data : Bytes #

[View source]
def data=(data : Bytes) #

[View source]
def height : UInt16 #

[View source]
def height=(height : UInt16) #

[View source]
def width : UInt16 #

[View source]
def width=(width : UInt16) #

[View source]