22 lines
751 B
Nim
22 lines
751 B
Nim
# Spleen 8x16 Bitmap Font (Standard Profile)
|
|
const FONT_WIDTH* = 8
|
|
const FONT_HEIGHT* = 16
|
|
|
|
const FONT_BITMAP*: array[256, array[16, uint8]] = block:
|
|
var res: array[256, array[16, uint8]]
|
|
# Space (32)
|
|
res[32] = [0x00'u8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
# Digits (48-57)
|
|
res[48] = [0x00'u8, 0, 0x7C, 0xC6, 0xC6, 0xCE, 0xDE, 0xF6, 0xE6, 0xC6, 0xC6, 0x7C, 0, 0, 0, 0]
|
|
# A-Z (65-90)
|
|
res[65] = [0x00'u8, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00]
|
|
|
|
# Powerline Arrow (128)
|
|
res[128] = [0x80'u8,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,0xFF,0xFF,0xFE,0xFC,0xF8,0xF0,0xE0,0xC0,0x80]
|
|
|
|
# Stub others for now
|
|
for i in 65..90: res[i] = res[65]
|
|
for i in 48..57: res[i] = res[48]
|
|
|
|
res
|