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.6.zip
(579.7 kB
view hashes)
Built Distributions
mglg-0.2.6-cp38-cp38-win_amd64.whl
(393.7 kB
view hashes)
mglg-0.2.6-cp37-cp37m-win_amd64.whl
(388.4 kB
view hashes)
mglg-0.2.6-cp36-cp36m-win_amd64.whl
(379.6 kB
view hashes)
Close
Hashes for mglg-0.2.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be9a39af2be3203c5350735ecaeec11e2105e94af3a9b29f0f752d0e1058cff2 |
|
MD5 | 308034408f8b44955c58a31217c6e2ce |
|
BLAKE2b-256 | 829dde1d5dd9219f2648a2e414249ac0c08e3574fa7e25313094fa92d0daad97 |
Close
Hashes for mglg-0.2.6-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c815bc1a38d8b870f5329350115cd1a22459c8161b69981f3c1ab2781bb3476 |
|
MD5 | 4e507ef1006819284496c839d605b28c |
|
BLAKE2b-256 | 56a9cfb3356c2749e35674196f0feb8719a7a764c33491012efee9c141c82c9a |
Close
Hashes for mglg-0.2.6-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2e7cfb8c3abf73791d7080f93e8b53b0410428c2a011d9e84f2acdf778ed1b |
|
MD5 | daf3425f4117dc71875a1ad03e865b2b |
|
BLAKE2b-256 | cfc4ec68a54062facd8d1d74fad78ef0360b6704a0d425b4f621f9e18fc0de7f |
Close
Hashes for mglg-0.2.6-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 019f04525ef43bd7efc00269a8f4b78bfb1899e737f9427347355951dda2e2d4 |
|
MD5 | 357d9c426e059e31039ce5f9b705f9b0 |
|
BLAKE2b-256 | a4bf3f86044f73974179409e55a86d2c79b0122ddf0829e424a95217fbc86c00 |
Close
Hashes for mglg-0.2.6-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f233f9855538f30454ba6e1603051c1fef1f1b86bfc21a7536574fed89f1ae3 |
|
MD5 | 6d5e57257481fdc782d8dbb3e475df25 |
|
BLAKE2b-256 | 41d82705986cd125fe1752fa7a5ff07b3c7a93ef42b547ed13d2c2a4b17895e4 |
Close
Hashes for mglg-0.2.6-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 268452ae65c8dd8b1f8cf605700efc098e22e99fc1b8289e0f01ac5a662af814 |
|
MD5 | c276cd15492f1b329323acfa9f0d811f |
|
BLAKE2b-256 | e85d271468b504feb4294273621226d8bf7dee9beaeb15e6de8c229aadda66f6 |
Close
Hashes for mglg-0.2.6-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfb4ea90bc112bc92eae0e412ab996e08330427ae3c6310b59efc32a26019d4d |
|
MD5 | db920062f75e4c2c527134f7bba13655 |
|
BLAKE2b-256 | 4c3ece8ae7e5102098e3d99e7b6a881c0d9e612a0b9bc67e05bea2689d401fa5 |
Close
Hashes for mglg-0.2.6-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d86b774c9dac064836d106351fdd27876f4274ead78c93abd18529c7f8b5d8e8 |
|
MD5 | 337d2f1d639f17fa0b75373ba8f4a5b8 |
|
BLAKE2b-256 | 2c9136694bea30c27958952a91095949f2b9da841dcbc8a3990d18b5103238c9 |
Close
Hashes for mglg-0.2.6-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cac5900a0f408c2945759a3ef8fdb4bcf9af436f3c7e2b6bfdc4dc0b568d7a3 |
|
MD5 | e0e69b2afc0dc06f943e17c72f54e815 |
|
BLAKE2b-256 | d96c5c330c71d9aba4745bf71cdea90ddb608ed287f2f54f9d718f15dd513253 |
Close
Hashes for mglg-0.2.6-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1c5282cf86c9e777a47e6d3ae37a595e02db753693bd6994a7bda7aae70fd84 |
|
MD5 | 2c1ea0152ac8b4b6798c586505a9687a |
|
BLAKE2b-256 | 8896a3c60a63990ed7e8167d011fad0c6083b554e026fa5844b08c750c5e492c |
Close
Hashes for mglg-0.2.6-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a528e6e8e390c3482d13268fb527b339f71e57fbdb6d76e4cf1555f971a78efc |
|
MD5 | 4aade74d888f9cc97916da22dea42d31 |
|
BLAKE2b-256 | 9dbd3fa012be43eb8712dfdf20f7dc459f90c58d3ae852245de1311e25f6dd31 |
Close
Hashes for mglg-0.2.6-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3785546531f223ebaf1733cab28172c4f09c175a3d470b4bbd05b5009bef1e42 |
|
MD5 | 5231f2d9d6aa7219a5639675cb3e16ce |
|
BLAKE2b-256 | c52cb6edbd1d6df5833e26554fde79b2db501e7bcd71dc18d687c159dde70e01 |