|
Man Over Board
|
Header file for font rendering functions. More...
Macros | |
| #define | SMALL_TEXT_WIDTH 8 |
| #define | SMALL_TEXT_HEIGHT 16 |
| #define | BIG_TEXT_WIDTH 64 |
| #define | BIG_TEXT_SPACING 48 |
| #define | BIG_TEXT_HEIGHT 65 |
Functions | |
| void | drawSmallText (Screen *base, char *str, u16 x, u16 y, BitMapDrawMode drawMode) |
| Renders small-sized text on the screen. | |
| void | drawBigText (Screen *base, char *str, u16 x, u16 y, BitMapDrawMode drawMode) |
| Renders large-sized text on the screen. | |
| void | drawBigTextUnderline (Screen *base, u8 pos) |
| Draw a underline under a character when draw at the bottom of the screen. | |
Variables | |
| const u32 | glyphs [128][4] |
| Glyph data for ASCII characters 0-127. | |
| const BitMap | depixel [] |
| Predefined bitmap representations of glyphs. | |
Header file for font rendering functions.
This file contains declarations for rendering text on a screen. It defines glyph data structures and functions for drawing both small and large text.
| void drawBigText | ( | Screen * | base, |
| char * | str, | ||
| u16 | x, | ||
| u16 | y, | ||
| BitMapDrawMode | drawMode ) |
Renders large-sized text on the screen.
| base | Pointer to the screen buffer. |
| str | The null-terminated string to be drawn. |
| x | X-coordinate of the text position. |
| y | Y-coordinate of the text position. |
| drawMode | Drawing mode to be applied. |
Draw a underline under a character when draw at the bottom of the screen.
| base | Pointer to the screen buffer. |
| pos | index of the char to underline |
| void drawSmallText | ( | Screen * | base, |
| char * | str, | ||
| u16 | x, | ||
| u16 | y, | ||
| BitMapDrawMode | drawMode ) |
Renders small-sized text on the screen.
| base | Pointer to the screen buffer. |
| str | The null-terminated string to be drawn. |
| x | X-coordinate of the text position. |
| y | Y-coordinate of the text position. |
| drawMode | Drawing mode to be applied. |
|
extern |
Predefined bitmap representations of glyphs.
This array contains bitmap structures for rendering font characters in a larger size.
|
extern |
Glyph data for ASCII characters 0-127.
This array stores 4x32-bit values per character, representing bitmap data for rendering small font glyphs.