#include #include "ubox_vga.h" static const uint8_t *font; void ubox_set_font(const uint8_t *pixdata) { font = pixdata; } void ubox_put_text(uint16_t x, uint16_t y, const char *text, uint8_t color) { ubox_rect dst = { x, y, 8, 8}; while (*text) { ubox_blit_c(font + ((*text++ - ' ') << 6), &dst, color); dst.x += 8; } }