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.7.zip
(579.7 kB
view hashes)
Built Distributions
mglg-0.2.7-cp38-cp38-win_amd64.whl
(393.7 kB
view hashes)
mglg-0.2.7-cp37-cp37m-win_amd64.whl
(388.4 kB
view hashes)
mglg-0.2.7-cp36-cp36m-win_amd64.whl
(379.6 kB
view hashes)
Close
Hashes for mglg-0.2.7-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bca12c7786e6dcd2216328e63e031a77423c28e486233289816aadd924272716 |
|
MD5 | ec8b6943fb1e4e555e8cabbbf909d0fb |
|
BLAKE2b-256 | 3d8eaaae80a079576fb5640d26aa88a30eaf8b6a93f5356aeeb2a93a8028b082 |
Close
Hashes for mglg-0.2.7-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 962d0f2290fdc413ab4d7dab2eb3acf89aaf4a141e752d344c8a614a3a83470d |
|
MD5 | 51c1174bb8a472dd184a87b5c82ccacb |
|
BLAKE2b-256 | 2362d9ad725e363d27e279f4d360208290d963e112962a34d5691efd26f2848e |
Close
Hashes for mglg-0.2.7-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a658a9bc583c778e8f6f34e164496263c1cb824de1d8ba6d437230f61758487 |
|
MD5 | 5b2566db3b0d14780e3a5a28c93ae674 |
|
BLAKE2b-256 | 0cf676ca9cdeea2b81d4d88d7d1d98f2e38172741d6cd0842c283e1c42fee986 |
Close
Hashes for mglg-0.2.7-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 563bf7de0ef28fab3dffc225a871364a5dfd39bcb21fddf8aa4316e997e37662 |
|
MD5 | 31fa8e8d9598421a2868fff0dca5b75b |
|
BLAKE2b-256 | 75cc6dfe914fa77731949430d86ea254a320d0102b12cb510c66bacefc19a5ed |
Close
Hashes for mglg-0.2.7-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 673da58d5d492b68d90512740887fd93fb0b03d1cd1a0b3142fbefe18a442201 |
|
MD5 | 3d6fc02cb1f200e03df28a83f8807d02 |
|
BLAKE2b-256 | 8f4b5227d76022a8788bed51b37b4e952b004e0fad8e60ac51eb9eb6e7dced5f |
Close
Hashes for mglg-0.2.7-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6e84356d8e1302354e80949ad3e5a5e36b47eb4218686771baed2128056b60b |
|
MD5 | 4e04f33912e565dd2f3eb0edf436c3d4 |
|
BLAKE2b-256 | f555f25d9bb7893ffca574fee1bd71acb45d68b738e7cd66e1af3ce1634898fa |
Close
Hashes for mglg-0.2.7-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96793ae1b2de32fbc328533c1106bec1f702edb33b78f2a8cec34aca24d51009 |
|
MD5 | 860b444a06d7e934f5e24ff1b75b45a9 |
|
BLAKE2b-256 | 6d87e1e92b55152a0ba71dd04ad36d971f79248302bdddea376bd7eaf75c6727 |
Close
Hashes for mglg-0.2.7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c1aecd37feb7dc204e5b9c6bc023e3248d67f4ef24419661359d479563ab5b8 |
|
MD5 | c640d3ae8a14d42bf6ba74fc53af5497 |
|
BLAKE2b-256 | a49a7977e6329205a70b015d5c10f353d4a956eec93cf581675b3808327e48d5 |
Close
Hashes for mglg-0.2.7-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c44267dc92904528db003ca239dc364277c68a137c1e752697bb73f6cf964d7 |
|
MD5 | 104b70de8611309ba7e7192aac487ae5 |
|
BLAKE2b-256 | 4037c0d9701eac1882f22f3651bdece01e7dd4e9842fceb8930673b212ad07cc |
Close
Hashes for mglg-0.2.7-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d114902fe139bb8eca523c2c199bbd5cadfa4eecb86f5bdcaf045811abc35165 |
|
MD5 | 7b9dc15e9d5962be9a7f82e5d53bd552 |
|
BLAKE2b-256 | 560e2155636a902bfa3298fac95bdf6a418ba9a4debb988820c3a9938252d4d2 |
Close
Hashes for mglg-0.2.7-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 669ed3fefbe81f5b84f763418ca6ac5f42cfd47c644bf53f2609a9c863b7e0c9 |
|
MD5 | f7d2ae5fb31eabeab1a704e179a7773e |
|
BLAKE2b-256 | 3ae62f1eae6ee73191cd744b46018d22e7a71abec0b8e7dfab77b37714da22df |
Close
Hashes for mglg-0.2.7-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce8cbf70f9fb50c220d7769f00dffbc19c8ff8b58271b08f1d71e0a771761062 |
|
MD5 | 1a8a6a3d6cf563e0b86d795f8de97388 |
|
BLAKE2b-256 | 67e556cdebcd1d08b3a3df8e1076a5159a1b26a337500d4e03ff76bb39a61392 |