Skip to main content

No project description provided

Project description

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].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mglg-0.2.1.zip (577.9 kB view hashes)

Uploaded Source

Built Distributions

mglg-0.2.1-cp38-cp38-win_amd64.whl (391.7 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

mglg-0.2.1-cp38-cp38-manylinux2010_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

mglg-0.2.1-cp38-cp38-manylinux1_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.8

mglg-0.2.1-cp38-cp38-macosx_10_9_x86_64.whl (448.1 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

mglg-0.2.1-cp37-cp37m-win_amd64.whl (386.5 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

mglg-0.2.1-cp37-cp37m-manylinux2010_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

mglg-0.2.1-cp37-cp37m-manylinux1_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.7m

mglg-0.2.1-cp37-cp37m-macosx_10_9_x86_64.whl (445.9 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

mglg-0.2.1-cp36-cp36m-win_amd64.whl (377.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

mglg-0.2.1-cp36-cp36m-manylinux2010_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

mglg-0.2.1-cp36-cp36m-manylinux1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.6m

mglg-0.2.1-cp36-cp36m-macosx_10_9_x86_64.whl (439.1 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page