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.3.zip
(579.3 kB
view hashes)
Built Distributions
mglg-0.2.3-cp38-cp38-win_amd64.whl
(393.3 kB
view hashes)
mglg-0.2.3-cp37-cp37m-win_amd64.whl
(388.0 kB
view hashes)
mglg-0.2.3-cp36-cp36m-win_amd64.whl
(379.2 kB
view hashes)
Close
Hashes for mglg-0.2.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c399970f34a4aeede63d264d057e79e99c1cbaa704eac7855d1970bb22901f48 |
|
MD5 | 92f7be3af565286d67f8c52d17500783 |
|
BLAKE2b-256 | 228d4aa60873fc78e5b84519a3441c3742ff3896c8411cda46a75858c38c842c |
Close
Hashes for mglg-0.2.3-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60238d10ecbfab56a5ddfc8cd198f6965cb18eab9994ccc119ff3b7197e6aab5 |
|
MD5 | fc2a7bfb5a8f140c44494cf7ad216994 |
|
BLAKE2b-256 | 15b7a7377f903d5b0c451ed09a467ad07572a0e831864a4fdcf6536797f7d1c4 |
Close
Hashes for mglg-0.2.3-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c7efd1327ae342f17ab83dba67aca3e221ff38ccbd301a01fd7729f3eb6abf1 |
|
MD5 | bea7a169c134ad145677618199e8fb65 |
|
BLAKE2b-256 | 03a20e8779d355374772d9ca32c7574d91755381d9b42262815d8c17215ef1b3 |
Close
Hashes for mglg-0.2.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea203b948b67fc47fa8d8f8f2b3652b5b3857238d404d0f9b1d20e1a66cb8d5 |
|
MD5 | 258414b27268a62c7eaa5909350f26a4 |
|
BLAKE2b-256 | 9a9e7506ff56b991db261212e332012999ca7ea0350519174dbb424eb6cd936a |
Close
Hashes for mglg-0.2.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e028ab0254f3fdae26d1b5872b00c18a8c34aeb886adc8a12d0ad36651e19583 |
|
MD5 | 9b76d1b4fb441ef24b6f73a212e1fa4f |
|
BLAKE2b-256 | 2e45f72ac20ac29bae13a41888b15ade40153457b618d0fe24759ce2e81f90be |
Close
Hashes for mglg-0.2.3-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 018c42fc23e2c9880e7a89ade3c7b7dfcfa51423b60faf63a4930aadd691e5fc |
|
MD5 | 3785fdf0b0e5b2d13ec2a6275df5aa1b |
|
BLAKE2b-256 | c7ad9e93b609288be5ecaf6b91df0f0d5e5662cf039a67982a47ea7b0b558c98 |
Close
Hashes for mglg-0.2.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a8bf38f2c3bb857a441017dae8af6bcbde197acf2caf52f72ca8dc2b8ba9b89 |
|
MD5 | 75bda3bd30391fdaa77a0391b95ad82a |
|
BLAKE2b-256 | ff5759d15f914976e7cac49bb6dc78f565f14d6ccded16a0a49afbc61a6249e5 |
Close
Hashes for mglg-0.2.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4588691a85746bf4c56f1b4bb84a6bc9b1d28244f6ca48a10a15ae63b76f71e9 |
|
MD5 | 9d02ba4a4da715442997c78da3085771 |
|
BLAKE2b-256 | 2062a221d1cda6689b220de5f8aaa964baccfd92153e814f6904f3246a9be431 |
Close
Hashes for mglg-0.2.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4642b07caaaad2fab446c8efb48b50ca804b03e55744112dfd93cf904e6f16d7 |
|
MD5 | 84b8c0ce14c884e4cfd18b0168565587 |
|
BLAKE2b-256 | 086fc6069c1af48362d50e1f95680fd98c3f226453d8d32774feda1b4f40305a |
Close
Hashes for mglg-0.2.3-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16fb7ac767a3ca2bfed19db7d321409b39bfb5345be0940c7a117dd74a5fac33 |
|
MD5 | 78e34bd48cb4b6bcb5b1cccd3308aef5 |
|
BLAKE2b-256 | d5ed14b5a50733116aa985f53bbd5f5e29239ac8fc1524da2af8c9cf52be61e2 |
Close
Hashes for mglg-0.2.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a289efd6d36c8004e51a623644e36faee43a0e6ce5c9a146ccbbcc1a4c0ec7 |
|
MD5 | 891d29995ed5735606a9937ffc79561b |
|
BLAKE2b-256 | d57f45f4561e702e1bdef3e045957a0de84fce68ed8da388a57e561b7fe4f684 |
Close
Hashes for mglg-0.2.3-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95564adae75c1a16cab068355b0f2d27c9ef68aaea3a5eab62c94e0cf6fa09bd |
|
MD5 | d68e8b063004e6e941c6d789f5b544ad |
|
BLAKE2b-256 | 7a1516d6e8bb87b8e86a245b2e8a6b88e7db43e12e71cb2a2b9f05c1335712fc |