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
Release history Release notifications | RSS feed
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.21.zip
(454.8 kB
view hashes)
Built Distributions
mglg-0.2.21-cp38-cp38-win_amd64.whl
(328.6 kB
view hashes)
mglg-0.2.21-cp37-cp37m-win_amd64.whl
(323.8 kB
view hashes)
mglg-0.2.21-cp36-cp36m-win_amd64.whl
(316.8 kB
view hashes)
Close
Hashes for mglg-0.2.21-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec79a496b6e9f2a4a95c5717867025cc5902a02f591dddf0d8a100491f6d5c65 |
|
MD5 | a5e263380c6b6b981f07860ed601195e |
|
BLAKE2b-256 | e6c7e91b992b1cd7d4a80c430e92e9761f31caf2941a1aa6722a1bcc21196834 |
Close
Hashes for mglg-0.2.21-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9155f3640ded6adffdf5c1121ebebdf5b1b47703e8d56ac3b73535b780e3b618 |
|
MD5 | 260a545a08ae3037b58e1643d15619ea |
|
BLAKE2b-256 | 30ae9e35ccddbbbc2511f445bf4b63a5633d9a6e62975adda668677763a3d641 |
Close
Hashes for mglg-0.2.21-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20bb1443f32fd7e21244850c75a5920b107fe8b7b179057f6d71140338b5ad2a |
|
MD5 | 45827e3544af451fdb838addba689547 |
|
BLAKE2b-256 | 60955bd40e63ee0d637177f7624106c3fe0f704822dfa4ee50bb7fa3b2407b62 |
Close
Hashes for mglg-0.2.21-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be57e97cc8e105ac328c86ecc20ecfe1f2798d932b4be3fdef73a2c010f05621 |
|
MD5 | 15064aa6c4d187c1454b248c581dd02d |
|
BLAKE2b-256 | ce11a01255b78a75eb395b93a308ce3298e73fedd8fb3d5b92fbe7668ca31c1e |
Close
Hashes for mglg-0.2.21-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c09ffb0139a015d06e2d64844fb40def23470758fb14c1d918550c403a236dde |
|
MD5 | 2393bac9629f781b169dfd821663645f |
|
BLAKE2b-256 | a38d5e4b13408f0bcb21d58b2cc4c8b4d5583c11c27f862c3939869eba0bc584 |
Close
Hashes for mglg-0.2.21-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5510a2e3388cddfcb21460d3b3a851a247e582f9ffbb8e755cd58eb75aeac9b |
|
MD5 | 9c45bc0ce08261a2b99f3884450f8ece |
|
BLAKE2b-256 | 2218da9f123832cc42e0471716a75d0d2cb74e1c0eff5887a687121ec73ae647 |
Close
Hashes for mglg-0.2.21-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d3ab85f5db5731e8796ca226a682f9b599fbc3e9d4bdce23e3230b8faaa1724 |
|
MD5 | 9b58bad9b4b9230f519d68b6995b0435 |
|
BLAKE2b-256 | a9bb551b4627b5ad06d4224fa2e5f1c073847213ce5af24290e96730ace6ef06 |
Close
Hashes for mglg-0.2.21-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de86aeab4552aaeb75d62b3c722b5fd3e5c3d813cc276708dab68d1fd535c26f |
|
MD5 | e80a4f364308b621d2e695ace86bad4c |
|
BLAKE2b-256 | c4847e2cce3145bbc4057206df907a06695754e1e22a292c5ef2674987b0f1f8 |
Close
Hashes for mglg-0.2.21-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7601b8891665891d7eab2f16628a71dfd583921d61ed33a21b94ddca63de756 |
|
MD5 | 8a1d8667d363b2208a51f8d5894c44fe |
|
BLAKE2b-256 | ff974d8f2ee3d000ac65d3a62991775c5658479ff25333c7a55a0acab28ee676 |
Close
Hashes for mglg-0.2.21-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73e0dcdb243e6fc754d0980a198ff65ef759fb6f85d00d4f6661ee2d07bab188 |
|
MD5 | 86ea787c68a0566a9d958ba90e39ba44 |
|
BLAKE2b-256 | 71cfcfec517192e26edbff6f6b8cb20078ded6abe40a54f6ea519002204e56bf |
Close
Hashes for mglg-0.2.21-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29bd4da61462f28be2e9298861715043901dcb4f1e6af363a777f350698f5f50 |
|
MD5 | 6e91f37b96e5e45d9012abe04a19faf8 |
|
BLAKE2b-256 | 1e92146d6494ba98a01e552aa2cb9216bc8796d4a639284d0c0104f56a4f1340 |
Close
Hashes for mglg-0.2.21-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80837edb1a878d16f62eafbdce140c700428715dcb2c05f9d8ec47603dff3cd3 |
|
MD5 | 8d64e5bb8c36d5e77b754dff9b71b9c6 |
|
BLAKE2b-256 | 827ff56321e84176f46988aad49a399ea4ef4c08b70e8d51cc9623f7f654f085 |