Skip to content

aforren1/mglg

Repository files navigation

image Build

Built-for-purpose, minimal 2D graphics library.

Working on documentation, but the file examples/jamboree.py is pretty comprehensive.

To pre-create the glyphs and atlas, there's a command line tool, e.g.:

python -m mglg.util.prebake_font examples\UbuntuMono-B.ttf fonts\

Which saves a pickled file (in this case, fonts\UbuntuMono-B.pklfont) that includes the atlas, glyphs, and other info to avoid touching the font file. Add --view to see the atlas.

freetype-py is required to generate pickled fonts or do on-the-fly font loading, and can be installed either via pip install freetype-py or pip install mglg[freetype].

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published