KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
minifont.h File Reference

Simple font drawing functions. More...

#include <kos/cdefs.h>
#include <stdint.h>

Go to the source code of this file.

Functions

int minifont_draw (uint16_t *buffer, uint32_t bufwidth, uint32_t c)
 Draw a single character to a buffer.
 
int minifont_draw_str (uint16_t *b, uint32_t bufwidth, const char *str)
 Draw a full string to any sort of buffer.
 
void minifont_set_color (uint8_t r, uint8_t g, uint8_t b)
 Set the color for the mini font.
 

Detailed Description

Simple font drawing functions.

This file provides support for utilizing the "Naomi" font that is included in the KOS source code (in the utils/minifont.h file). This was designed for use when you really just want a very simple font to draw with.

Note
Only ASCII characters are usable here. No other fancy encodings are supported, nor are any extended ASCII characters beyond the 7-bit range. Also, only 16-bit buffers (like what you would normally have for the framebuffer) are currently supported.
Author
Lawrence Sebald