[][src]Module sensehat_screen::fonts

8x8 font collection

Structs

FONT_COLLECTION

A static FontCollection that offers a higher-level API for working with pixel frames, clips, scrolls, etc.

FONT_HASHMAP

A static HashMap<char, FontUnicode> that holds the entire set of fonts supported for the Screen.

FontCollection
FontFrame

A font that can be rendered as a PixelFrame with a stroke color, and a background color.

FontString

A FontString is a collection of FontUnicode which can be rendered to frames for the LED Matrix.

FontUnicode

A single 8x8 font which supports UTF-16 encoding/decoding.

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.

Traits

UnicodeFonts

A trait for collections of FontUnicode, which provide methods for retrieving the Option<[u8; 8]>, using the corresponding char as key.

Functions

font_to_frame

Render a font symbol with a PixelColor into a FrameLine.

font_to_pixel_frame

Render a font symbol with a PixelColor into a FrameLine.