Gigoteur / UnicornConsole

Unicorn Console: create quick fantasy game in Rust/Python/Lua/Rhai/Wasm !
MIT License
905 stars 47 forks source link

Added support for multiple fonts. #48

Closed johnbatty closed 7 years ago

johnbatty commented 7 years ago

Multiple fonts! (Issue #24)

Fonts based on information from here: https://damieng.com/blog/2011/02/20/typography-in-8-bits-system-fonts

New font definition format. Rewritten text rendering (2x faster than previous version).

New font API function:

    font(<font name>)
    font name = <pico8|bbc|appleII|cbmII>
e.g.
    font("appleII")

Default font is pico8.

Font example app updated to allow flipping through fonts with left/right arrows.

The larger fonts will obviously be more suited to a higher resolution than 128x128.

Enjoy!

hallucino commented 7 years ago

Nice !! It will be super useful !