mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 02:03:18 +00:00
24 lines
936 B
C
24 lines
936 B
C
|
#pragma once
|
||
|
|
||
|
/* GENERATED BY https://github.com/pavius/the-dot-factory */
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
// This structure describes a single character's display information
|
||
|
typedef struct {
|
||
|
const uint8_t width; // width, in bits (or pixels), of the character
|
||
|
const uint16_t
|
||
|
offset; // offset of the character's bitmap, in bytes, into the the FONT_INFO's data array
|
||
|
|
||
|
} FONT_CHAR_INFO;
|
||
|
|
||
|
// Describes a single font
|
||
|
typedef struct {
|
||
|
const uint8_t height; // height, in pages (8 pixels), of the font's characters
|
||
|
const uint8_t startChar; // the first character in the font (e.g. in charInfo and data)
|
||
|
const uint8_t endChar; // the last character in the font
|
||
|
const uint8_t spacePixels; // number of pixels that a space character takes up
|
||
|
const FONT_CHAR_INFO* charInfo; // pointer to array of char information
|
||
|
const uint8_t* data; // pointer to generated array of character visual representation
|
||
|
|
||
|
} FONT_INFO;
|