[][src]Crate font8x8

8x8 monochrome bitmap fonts for rendering

This crate contains a Rust implementation of a public domain 8-bit by 8-bit font.

See '../README.md`.

On the miscellanous characters included

These characters are provided as-is, and some don't have a proper unicode point. They are provided in the MISC and SGA contants. For a description, please read the constant documentation.

Credits

Initially extracted from an asm file, fetched from a now broken link: http://dimensionalrift.homelinux.net/combuster/mos3/?p=viewsource&file=/modules/gfx/font8_8.asm

It was then ported to a C header file, also in the Public Domain, https://github.com/dhepper/font8x8.

This crate is an extension of that work.

Re-exports

pub use self::unicode::FontUnicode;
pub use self::unicode::UnicodeFonts;

Modules

legacy

Re-export the original [u8; 8] constants, taken from C-header files. Legacy constants.

unicode

Unicode support for 8x8 fonts.

Structs

FromUtf16Error

A possible error value when converting a String from a UTF-16 byte slice.

Constants

BASIC_FONTS

A convenient constant for Basic Latin fonts (U+0000 - U+007F), that implements the UnicodeFonts trait.

BLOCK_FONTS

A convenient constant for Block Element fonts (U+2580 - U+259F), that implements the UnicodeFonts trait.

BOX_FONTS

A convenient constant for Box Element fonts (U+2500 - U+257F), that implements the UnicodeFonts trait.

GREEK_FONTS

A convenient constant for Greek fonts (U+0390 - U+03C9), that implements the UnicodeFonts trait.

HIRAGANA_FONTS

A convenient constant for Hiragana fonts (U+3040 - U+309F), that implements the UnicodeFonts trait.

LATIN_FONTS

A convenient constant for Extended Latin fonts (U+00A0 - U+00FF), that implements the UnicodeFonts trait.

MISC_FONTS

A convenient constant for Miscellanous fonts (U+20A7, U+0192, U+00AA, U+00BA, U+2310, U+2264, U+2265, U+0060, U+1EF2, and U+1EF3), that implements the UnicodeFonts trait.

SGA_FONTS

A convenient constant for special SGA fonts (U+E541 - U+E55A), that implements the UnicodeFonts trait.