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 CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

mglg-0.2.23-cp37-cp37m-manylinux2010_x86_64.whl (406.5 kB view hashes)

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

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

Uploaded CPython 3.7m

mglg-0.2.23-cp37-cp37m-macosx_10_9_x86_64.whl (354.4 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

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

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

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

Uploaded CPython 3.6m

mglg-0.2.23-cp36-cp36m-macosx_10_9_x86_64.whl (348.2 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