[][src]Crate embedded_picofont

The PICO-8 font to use with embedded-graphics.

TravisCI Codecov License Source Crate Documentation Changelog GitHub issues

Overview

This crate provides the super tiny 4x6 font of the PICO-8 fantasy console:

Please note the PICO-8 itself only use the uppercase characters, as the lowercase chars can get really hard to read if the display is not upscaled. As such, it is advised to only use this font to display uppercase characters.

Usage

Use the text_pico macro to create a Drawable text from a string:

use embedded_graphics::prelude::*;
use embedded_picofont::{text_pico, FontPico};
let text: FontPico<u8> = text_pico!("Hello world!");

Hello world

The PICO-8 also has wide characters: these can be displayed using two smaller characters in the 128..255 char range:

use embedded_graphics::prelude::*;
use embedded_picofont::{text_pico, FontPico};
let text: FontPico<u8> = text_pico!("PRESS \u{96}\u{97} TO GO BACK");

Press left to go back

See the embedded-graphics documentation for more information on how to use this crate.

License

Macros

text_pico

Render text using the FontPico font.

Structs

FontPicoConf

The FontBuilderConf implemtation for the PICO-8 font.

Type Definitions

FontPico

The 4x6 pixel monospace font used by the PICO-fantasy 8 console.