#pragma once

#include "common.h"

/* credit due to blit-fonts

ISC License
Copyright (c) 2018 Andrew Reece

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

*/

#define FONT_WIDTH 5
#define FONT_HEIGHT 6

static u32 font[] = {
    0x0,        0x8021084,  0x294a,     0x15f52bea, 0x8fa38be,  0x33a22e60,
    0x2e94d8a2, 0x1084,     0x10421088, 0x4421082,  0xa23880,   0x471000,
    0x4420000,  0x70000,    0xc600000,  0x2222200,  0x1d3ad72e, 0x3e4214c4,
    0x3e22222e, 0x1d18320f, 0x210fc888, 0x1d183c3f, 0x1d17844c, 0x222221f,
    0x1d18ba2e, 0x210f463e, 0xc6018c0,  0x4401000,  0x10411100, 0xe03800,
    0x4441040,  0x802322e,  0x3c1ef62e, 0x231fc544, 0x1f18be2f, 0x3c10862e,
    0x1f18c62f, 0x3e10bc3f, 0x210bc3f,  0x1d1c843e, 0x2318fe31, 0x3e42109f,
    0xc94211f,  0x23149d31, 0x3e108421, 0x231ad6bb, 0x239cd671, 0x1d18c62e,
    0x217c62f,  0x30eac62e, 0x2297c62f, 0x1d141a2e, 0x842109f,  0x1d18c631,
    0x8454631,  0x375ad631, 0x22a21151, 0x8421151,  0x3e22221f, 0x1842108c,
    0x20820820, 0xc421086,  0x4544,     0x3e000000, 0x82,       0x1c97b000,
    0xe949c21,  0x1c10b800, 0x1c94b908, 0x1c549800, 0x2211c4c,  0xe87252e,
    0x12949c21, 0xc210040,  0x6210802,  0x12519521, 0xc210842,  0x235aac00,
    0x12949c00, 0xc949800,  0x213a526,  0x3087252e, 0x2149800,  0xe837000,
    0xc213c42,  0xe94a400,  0x464a400,  0x155ac400, 0x36426c00, 0xe872529,
    0x1e223c00, 0x1843188c, 0x8421084,  0xc463086,  0x6d800,    0x3fffffff,
};
