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 <arch/types.h>

Go to the source code of this file.

Functions

int minifont_draw (uint16 *buffer, uint32 bufwidth, uint32 c)
 Draw a single character to a buffer.
 
int minifont_draw_str (uint16 *b, uint32 bufwidth, const char *str)
 Draw a full string to any sort of buffer.
 

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