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.0.zip
(577.8 kB
view hashes)
Built Distributions
mglg-0.2.0-cp38-cp38-win_amd64.whl
(391.7 kB
view hashes)
mglg-0.2.0-cp37-cp37m-win_amd64.whl
(386.4 kB
view hashes)
mglg-0.2.0-cp36-cp36m-win_amd64.whl
(377.6 kB
view hashes)
Close
Hashes for mglg-0.2.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4612244362d010f9cbcb5efb6cee6151a0901228234a7e3510e628da0830a1fa |
|
MD5 | cb193f21eeacd819b48fb37596b1666f |
|
BLAKE2b-256 | 3dfe8b9d2d5d23b6dcad02219004f9b9d83cd46d651f048844749d8ce4d7b102 |
Close
Hashes for mglg-0.2.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76d383adfd95f4eb9cdafad528b1233740bf155bb5a2e1d654dcb48d3b591170 |
|
MD5 | 10d0b6a52dced4daf8dab3f0b2d09ce4 |
|
BLAKE2b-256 | 370df0be4060224177ad73a94475409632b1ba33f7ea7ecddbdec18ef258531c |
Close
Hashes for mglg-0.2.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34eac208a9d36d0829e601eb84b48905a34664c3dab6b6c87b47735a8d8bd406 |
|
MD5 | a5f3cabb5d352d98707faba6ef19db4a |
|
BLAKE2b-256 | 44432148ea75c9a3cbaf275749389159f2a01ebf34851c0098981cc47eb5817c |
Close
Hashes for mglg-0.2.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d463fa231eb8489bfdeb521ce6fc03015d8cec354b08f07fd6159e02f62a0a2 |
|
MD5 | 672753b63f853738ddef2a4dff7a0814 |
|
BLAKE2b-256 | 45d9fce6225ab716b9b6c5d12e6ea74a789d6a99d431c2c15cfd85f9c2ec25fb |
Close
Hashes for mglg-0.2.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e31a3cd192c2cd0d2cea0ba504191b7a60dc1b2f7b906924073c7ffddb7231dc |
|
MD5 | d909335110a627633cd96809e127fe1c |
|
BLAKE2b-256 | e3d12f68d5b4b7bec4a197d7f72b25f907ee35c8c1de2cf8c6220e1d7bb309a9 |
Close
Hashes for mglg-0.2.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d55e1e6f64062ba31b66d768d64580d5e7d1b7e6975f1df5a4bad6617dd124fc |
|
MD5 | f8f777124814b3133789bc24546cb8c3 |
|
BLAKE2b-256 | f82e808377c952bfb885909ff2746aae69639bf6f13cc82b96a5669e546d0e1c |
Close
Hashes for mglg-0.2.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6a0e3adcfc42cc0492b7859a4ac893e4e47d657bf918c31a611a282cb500af3 |
|
MD5 | 9bd60731dc32413e9b721a2e3bcc3e4c |
|
BLAKE2b-256 | 9ce1da2c5a32ffca11ff8d7ac61e18932fa3f96a0e625a465c677d4d4dcf5b85 |
Close
Hashes for mglg-0.2.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3c242b856714cbb8610ddde29e04bb9eeb1664c9cfc3e8e09957f40a0cd70cf |
|
MD5 | 92a7f4f73762d6a7103898c84ec805a6 |
|
BLAKE2b-256 | 034950c121a415fac65e0d181ae9d3b66ce4576968481bc9ab4fd8286ff6b72b |
Close
Hashes for mglg-0.2.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 574334bba7a065afa0e090bbf52a0d50bac5dc42b0bbff9e267c8b2db5356b72 |
|
MD5 | 23eaa83588b9a7ce8cffc8cb842bb7ac |
|
BLAKE2b-256 | 016e2b63bc459a587575863a8361c50236a644b77a99159bf55678bda2ade014 |
Close
Hashes for mglg-0.2.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8638fa677ab04ec0cbb95dd451a3f56b728d74e9110f23d7bda18942c78eb980 |
|
MD5 | 179ac62f2238a039e9013c5066298020 |
|
BLAKE2b-256 | 14ce73f3a593b6972bc46c3c9797ef1aaa20186ba3689e7f6649b8def2763479 |
Close
Hashes for mglg-0.2.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccb655e33960e3ab84bdf50a8453277f76274665654dc966b91d1cf8dfc00756 |
|
MD5 | 068c45309e0d5ffb50c9de8a9a557da4 |
|
BLAKE2b-256 | dd6037d0579eccb9cbcad0d2c9255bb6c0a1e1597c9e46569c826ebb75ebc196 |
Close
Hashes for mglg-0.2.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bee6fd222bcf9051a5656bb5237a684c3c7cfc000c21ec62eddecf70fca54d1e |
|
MD5 | 0df734bc6e19c0950072680514eb3108 |
|
BLAKE2b-256 | 51953c50f7186bba0f52d32ebede1cff9f1cc84ebe4531a31a0fa48f78d3be72 |