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.2.zip
(579.2 kB
view hashes)
Built Distributions
mglg-0.2.2-cp38-cp38-win_amd64.whl
(393.1 kB
view hashes)
mglg-0.2.2-cp37-cp37m-win_amd64.whl
(387.8 kB
view hashes)
mglg-0.2.2-cp36-cp36m-win_amd64.whl
(379.0 kB
view hashes)
Close
Hashes for mglg-0.2.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cd7213b334b4c9ce84880b59e045b539fea7787cf58fed1e99615de76764178 |
|
MD5 | 7b03c3c99979f10816324ea0b9869d4e |
|
BLAKE2b-256 | 0e8cdb0011b96fd1a4bdfa92070428b5e9c8d76ed6d2df369316f14dc1632088 |
Close
Hashes for mglg-0.2.2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdcdf50a722fdb6d4d7d5f53232408ed7c88804586072d24a1ce16210ee6ccb5 |
|
MD5 | 867e0a90aa8fa5bd57e7045b7458c7db |
|
BLAKE2b-256 | d09ab7ed583303ba1c5d3eba9766945b322cf5a5173675717c516cbf9c2d3830 |
Close
Hashes for mglg-0.2.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 218704964312499ca78727268421c65e6937e59c7e8f6019451eecf72d93648d |
|
MD5 | 4c96e403f59ccf3342c3700af3284dce |
|
BLAKE2b-256 | 27fc4331b80f85edff52c6520ce249a73be5ac7c9c422275dd97fd22e5ecf99b |
Close
Hashes for mglg-0.2.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d35abe09bb105a3ce93f27a61e36188d928fafed632ac3f1371420336959006 |
|
MD5 | 787e9faa1ea31894da8b5fe8c709de1c |
|
BLAKE2b-256 | 37ed5c7dc8894f59909555ac3784bc1febfea4ecbd546d6831d08d83cd7ee445 |
Close
Hashes for mglg-0.2.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dd6330dfcad588ada2a4eef2a59a46ed1e8ba1726582b3d76cf88eac4974bfc |
|
MD5 | 0665e1efef89ef62f337a93ed7da665d |
|
BLAKE2b-256 | 7e4cb5f590b94cf9348398455d8867d8be035a1b438043593a39ab0b2b9efcd4 |
Close
Hashes for mglg-0.2.2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90584bfb381ce15844e8f705c317fd13475d3b57013e25ca552a382df6a59c6a |
|
MD5 | bf1b218756f27befcf1fbe1cc6bda85b |
|
BLAKE2b-256 | 2031897519aa47bb95fc5f455a8db1b90c1852562acb007747c56dcd12ab5d3e |
Close
Hashes for mglg-0.2.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fff9c112af105a38189b3a980dffc8988eeecc4ddab2e7f136b80bf547422319 |
|
MD5 | 7ff5249a790706682c01e2492b9882a9 |
|
BLAKE2b-256 | 80461d79fd3291db0cd70dcccf226e2a7e0ce904de13ae24ad0f87beb43c5f49 |
Close
Hashes for mglg-0.2.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8db35a1dab4c66383f28f2c82cca4c591768e1b74508026e4094e1660ae7761e |
|
MD5 | 03ef2f636388aef92b67a4288efcfff0 |
|
BLAKE2b-256 | 93e56b809428380da8aa505e79fc50c1a3664e7ec1baedd879cc790631ac031c |
Close
Hashes for mglg-0.2.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09a95318bee3b92c7c4ab6a2bc678bdabaad81d1b0c38c4ba738a172e77dc129 |
|
MD5 | 543f91095c5b958e4a68a4574b565a0f |
|
BLAKE2b-256 | a099f8b799ec2b714f523cf1dfb4896a56d96f65c5f7f552bd5970bedc188391 |
Close
Hashes for mglg-0.2.2-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9da1d08814598ccdbeaf95994a00a2cc80d77da4e0d6a00ca9ea4c0cba35c29c |
|
MD5 | 63270b99797fd5f49292518d2e94d5af |
|
BLAKE2b-256 | 23b7784f9d25c3c0833a7fca1f27c1c95e145cffeed0aea59313b0c2a3499ebd |
Close
Hashes for mglg-0.2.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda9dd2f206aad025ecc9b9b94ffcb1b57353efc3ca2442fe6cbc3166462d93b |
|
MD5 | dd5d83a67236b33c8ffc4766a0a32dbd |
|
BLAKE2b-256 | a65c6989e7e90730e7a05223fafa179ddedfbd183ed02991f42bcd9bad4177c5 |
Close
Hashes for mglg-0.2.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e17e910c2dfd92f7398093fbbdadcc62575a67f0ff67dbd51f70d966025b5c76 |
|
MD5 | 774084d46a8765288891b5f03705d089 |
|
BLAKE2b-256 | bda4898bbef5290459d0b0bebe278deb7cf47d47fb77dbea23df6ddda498b229 |