Skip to main content

No project description provided

Project description

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

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.23.zip (454.0 kB view hashes)

Uploaded source

Built Distributions

mglg-0.2.23-cp39-cp39-win_amd64.whl (328.7 kB view hashes)

Uploaded cp39

mglg-0.2.23-cp39-cp39-manylinux1_x86_64.whl (410.7 kB view hashes)

Uploaded cp39

mglg-0.2.23-cp39-cp39-macosx_10_9_x86_64.whl (356.5 kB view hashes)

Uploaded cp39

mglg-0.2.23-cp38-cp38-win_amd64.whl (328.6 kB view hashes)

Uploaded cp38

mglg-0.2.23-cp38-cp38-manylinux1_x86_64.whl (411.4 kB view hashes)

Uploaded cp38

mglg-0.2.23-cp38-cp38-macosx_10_9_x86_64.whl (356.2 kB view hashes)

Uploaded cp38

mglg-0.2.23-cp37-cp37m-win_amd64.whl (323.7 kB view hashes)

Uploaded cp37

mglg-0.2.23-cp37-cp37m-manylinux1_x86_64.whl (406.4 kB view hashes)

Uploaded cp37

mglg-0.2.23-cp36-cp36m-win_amd64.whl (316.7 kB view hashes)

Uploaded cp36

mglg-0.2.23-cp36-cp36m-manylinux1_x86_64.whl (387.5 kB view hashes)

Uploaded cp36

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page