ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_gfx_font.h
Go to the documentation of this file.
1
29
30#pragma once
31
32#include <stdint.h>
33
46typedef struct {
47 const uint8_t* glyph_data;
48 uint8_t glyph_width;
49 uint8_t glyph_height;
54
65/* NOLINTNEXTLINE(readability-identifier-naming) -- API symbol kept un-prefixed by design. */
const ra8_gfx_font_t ra8_gfx_font_8x16
Bundled 8x16 IBM PC VGA bitmap font, ASCII 0x20..0x7E.
Monochrome, fixed-width bitmap font descriptor.
uint8_t bytes_per_glyph
Bytes occupied by one glyph (rows * ceil(width/8)).
uint8_t last_codepoint
Highest stored codepoint (typically 0x7E, '~').
uint8_t glyph_width
Glyph width in pixels.
uint8_t glyph_height
Glyph height in pixels.
uint8_t first_codepoint
Lowest stored codepoint (typically 0x20, space).
const uint8_t * glyph_data
Packed glyph bitmaps; size = bytes_per_glyph * glyph_count.