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.20.zip
(454.8 kB
view hashes)
Built Distributions
mglg-0.2.20-cp38-cp38-win_amd64.whl
(328.6 kB
view hashes)
mglg-0.2.20-cp37-cp37m-win_amd64.whl
(323.8 kB
view hashes)
mglg-0.2.20-cp36-cp36m-win_amd64.whl
(316.8 kB
view hashes)
Close
Hashes for mglg-0.2.20-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71adb9cd33192a8bc61b600d7fa2575ce599537478e2e00623c5199f0fc6a923 |
|
MD5 | ba9e4c8f8cc6f94e7341f1fbc325bb26 |
|
BLAKE2b-256 | 88a2d795de389c54041f71633ee4fbd73c4b626e7238fb7ef2a461120886e5b0 |
Close
Hashes for mglg-0.2.20-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea0d941e98f93857c7e05e7e63a74e853bc9ae982648caf11b0215d8f23661cb |
|
MD5 | 797d2bd1b6c4a9d849b4a024bdb2f59c |
|
BLAKE2b-256 | 807a0fe63cc153d048ab1a16e8ba89c83bc79eb8e581a17aeafab3fddb63b136 |
Close
Hashes for mglg-0.2.20-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f998ca6df2432fc0f72179225186fa5318f183ae04e151bd219a2bf8c6a6f52 |
|
MD5 | 63d4007abd926fb39e4475c2b5f1adcf |
|
BLAKE2b-256 | 4ef1773ac568f472963b6a01ee41c1dd40d4d728d4d11129c0045fd365e1ee31 |
Close
Hashes for mglg-0.2.20-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd20ff2fd4a7232b54a0b24cd3d66c9dc85485c551c8921a6193a8c9114cffa2 |
|
MD5 | 98e9a2182a0089d1705367e41bab2fc9 |
|
BLAKE2b-256 | d08a10e528adda3c8537fa292c891144fd944b28f23f4e7a94164fc298a5305c |
Close
Hashes for mglg-0.2.20-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7849dcd9f8b4a521260ee745eddccfe2724e9aef2bcee5f1bab31faceb174b9b |
|
MD5 | c046096304c11795ddf9d27a0295b940 |
|
BLAKE2b-256 | b47cd35d4d24f19056aba5d2429a39369bde8c2faa89018673bdd7640bcf321c |
Close
Hashes for mglg-0.2.20-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7deb68679c1336a917c4cd2c1922a9db64de7bb91aae74f4c14b2adca527db0 |
|
MD5 | 9b124fb69cf534e4f9e9b4caff041d75 |
|
BLAKE2b-256 | 9bf5c8deb708edd3ef41fc45ca10f8e85ac84a6e6f7d5d9d9ed1cedae4438341 |
Close
Hashes for mglg-0.2.20-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ea192df6e064b6bd2814af6dd3fa976de4458867a0fb82fab949d8d287dcf1 |
|
MD5 | c78e3ae442474194d6ab946b165973bd |
|
BLAKE2b-256 | 0ef1770966bba2abcacc486a0df9d8805aa2826251e271581293acb72ea78b10 |
Close
Hashes for mglg-0.2.20-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4d58d4720b9d40116098e75cffe94dcf3347a327e34b65140adf0d807636564 |
|
MD5 | b5ca50eef91f92381eb4beb4f5187426 |
|
BLAKE2b-256 | 751d50dab9588ca4510ba04921f8a09401b8ed70924cf6ecff9aa4418a639462 |
Close
Hashes for mglg-0.2.20-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa5546c084f5d396494878e79dc2d4f90a5e8cc57cec82b050901c42ef736c85 |
|
MD5 | 41d9b24e83ffe0c8c332490f2a5bb974 |
|
BLAKE2b-256 | e8f4ce2a2e495ea26caf4badd38cf6473a65a9e7477dc6b9f067d9298ad8f9a2 |
Close
Hashes for mglg-0.2.20-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dc3b2ca021dedc9d2320dda984d1c2d90ccbae7d3de8094afc51857f54eed5a |
|
MD5 | 95358457eb4d375f802c00c1d3294723 |
|
BLAKE2b-256 | 8273516f4de71b818e63e34a5a1f8abf18d83b98c6d3324164b13729c0ac9a4c |
Close
Hashes for mglg-0.2.20-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1f333ea86a830fe7cdb113e13852bd5bbcf1c0cb47df39ae86239077be8360 |
|
MD5 | 417d1dd1c67517cd092af46eba11cb6f |
|
BLAKE2b-256 | 01d4a7bb874bc1e768dacad2ac80150cd6f2dfaa7d0cbff0879ddb97a8b492bd |
Close
Hashes for mglg-0.2.20-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81bd6a90b0e26006e593c5ff6f659dcd5666b7e701d46513563ed9a5d631abfa |
|
MD5 | 01333c2f7dc9cacc1bea63682c20b310 |
|
BLAKE2b-256 | 273cd4c20574aa8a7b7576561754f72e837dc6d2133b898a0a1146060e0b6bdf |