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.9.zip
(571.2 kB
view hashes)
Built Distributions
mglg-0.2.9-cp38-cp38-win_amd64.whl
(394.1 kB
view hashes)
mglg-0.2.9-cp37-cp37m-win_amd64.whl
(388.7 kB
view hashes)
mglg-0.2.9-cp36-cp36m-win_amd64.whl
(379.9 kB
view hashes)
Close
Hashes for mglg-0.2.9-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e65e45eb615223b01e003e2386257a798ecad7a1cf45187b0978aa7afae4e78f |
|
MD5 | 5e794d8867118d258b2bd8f82e2e7dcd |
|
BLAKE2b-256 | 6337513876e01b10eb025ba687decafd30585fa3fd783112f4700ad9599f862b |
Close
Hashes for mglg-0.2.9-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f041f8c68f28fa7dbb620ff7799544121aea77a0432d6f98863a15f31584a8d6 |
|
MD5 | 7a0963b6254a64596ae123ddf2f0df7f |
|
BLAKE2b-256 | 639225dbbc9afc3d412eb2cb072b049f7b022862fc9c76c896eee86e40b1acbc |
Close
Hashes for mglg-0.2.9-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cf9320d610258dd469c0c206b377cfeaddf0c0cb97d0cd13b0d52c0fc8a6ea4 |
|
MD5 | 6247199fca2749137349307f8c2f9b72 |
|
BLAKE2b-256 | 0685d4c14239482931bfb27f9af30abfe9c2dcca54f9e657250a6cc89ce57343 |
Close
Hashes for mglg-0.2.9-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a914205908086f6dc31a495e545d62f145aaabd39383f9bca8dd032db8d82c11 |
|
MD5 | 92bfc3ca9c3a4989868bbf68979f8f60 |
|
BLAKE2b-256 | 88e7fac51f4f2ba55e28c53abd1a2356a2e66f78e6a6ccd8bad57799878dc1df |
Close
Hashes for mglg-0.2.9-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3d79cdc512943c93ab7e3ec88bb157090e64ddb3dbe37b45f9615fc39a8c2ae |
|
MD5 | daaa56f78da00f950bb657983b7ad6d4 |
|
BLAKE2b-256 | 9dd548db9c21d4e56bbc96d411107e5dcde4a2c8ebb738ce4d4430fd40d86a4a |
Close
Hashes for mglg-0.2.9-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 338b41a5514d8d92c7a983d18fab540b2ed4e092d18a6f5bf8f8823f62de8af7 |
|
MD5 | f2e3407a99cd3c0f6f3c41c7d07e4b0c |
|
BLAKE2b-256 | b5e47519a61781785cc52639cb4f03c34d9a03f2647658229ac44720e6729651 |
Close
Hashes for mglg-0.2.9-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ef0562706f622a3ae699ef0b836db2d2d2aba5d314d46fd2c383b6c82f552cd |
|
MD5 | f5cc49a22db3fea4a05af7b37ae6b7a8 |
|
BLAKE2b-256 | 286ea6a30a4b44af930ea12cd29f9d24eb4ade8c64986a4b318d26807600b664 |
Close
Hashes for mglg-0.2.9-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da7394a750054aace0d4292ccebd8327a316b25cdb54a87f01c6a019bf48f399 |
|
MD5 | e65f2d1d5bfb38393ccb8a51cbb07f33 |
|
BLAKE2b-256 | ff3f1bd48f72399f0c18616e4633505f1a37701ed92583dbff128eca5eb9413a |
Close
Hashes for mglg-0.2.9-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 587a3bf1ac9f08220baf55338ea4b2a8ff9f4ac572526037aaa5ee7431c825fe |
|
MD5 | 9c79814982a95a03dc63abcbbdc1d762 |
|
BLAKE2b-256 | 9ccbadcf2fa8a4cbaa99d697efb613ed94cc3c418e7394e4d8f808131cab3277 |
Close
Hashes for mglg-0.2.9-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b41e6fd661c8c0f17d0e2619f328dd8a258a0d3f0fe5ed1e3a66304da81a564f |
|
MD5 | b8f23a8df02363b9130e3febbae1de75 |
|
BLAKE2b-256 | bcde7236a3111ae734fb3991cdae9c6b4f49a7848643d5e6886f66cd58f40ddf |
Close
Hashes for mglg-0.2.9-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cce1bf6e79a8c264d7201d9704ecf76e8676cfb84d2513c629625b2896eebce |
|
MD5 | db07080215ca0c810012ea552276d0b3 |
|
BLAKE2b-256 | 74b51a04c0f270f50f66109cffe7b8fd86b76179b89827246ad71715bde4f143 |
Close
Hashes for mglg-0.2.9-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69b51e4dc6a2d767c8e52325556c60f10a347a5d8e52054cfa7b45a1ed8cb85d |
|
MD5 | 7adbf45d844d14a630348af8e2255460 |
|
BLAKE2b-256 | dc9cba52be78d467097e3da4126aa5428df6ed59b049cb28994ceab912b02dbe |