Display » Text module

Butano text system, based on sprites.

Currently, it supports 4 bits per pixel (16 colors) fixed width AND variable width characters.

Text can be printed in one sprite per character or multiple characters per sprite.

Also, UTF-8 characters are supported.

Files

file bn_sprite_font.h
file bn_sprite_text_generator.h
file bn_utf8_character.h
file bn_utf8_characters_map.h
file bn_utf8_characters_map_ref.h

Classes

class bn::sprite_font
Contains the required information to generate text sprites.
class bn::sprite_text_generator
Generates sprites containing text from a given sprite_font.
class bn::utf8_character
Decodes a single UTF-8 character from a string.
template<const span<const utf8_character>& Utf8Characters>
class bn::utf8_characters_map
Maps a list of UTF-8 characters to their position in the list.
class bn::utf8_characters_map_ref
Maps a list of UTF-8 characters to their position in the list.