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.1.zip
(577.9 kB
view hashes)
Built Distributions
mglg-0.2.1-cp38-cp38-win_amd64.whl
(391.7 kB
view hashes)
mglg-0.2.1-cp37-cp37m-win_amd64.whl
(386.5 kB
view hashes)
mglg-0.2.1-cp36-cp36m-win_amd64.whl
(377.6 kB
view hashes)
Close
Hashes for mglg-0.2.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad1a497f7018be5c294134e8dfe34bf977e6afdba863357422c75fdf15e2c18a |
|
MD5 | 226369eb1c59e99620e0dec41e761b5b |
|
BLAKE2b-256 | 125f296c1b28b118425dd6ab83224624e3d2fffbf9ba49c21ce2727c00108d89 |
Close
Hashes for mglg-0.2.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b589c75c17b672b37ff65b85c77478b717c68d20f7c4d25c806f116d128ab60 |
|
MD5 | c7ae195f880aef79f8fda9a1da0dd94c |
|
BLAKE2b-256 | fdfb60b3cb1f15238cda9cf8c1adf46c1043a3a5de6ba27ad5c5e6fc7ae6a4d8 |
Close
Hashes for mglg-0.2.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52241f5888d369a6061bb28ea94f5cd5e534fdc84fdbe149effac6c530a815d9 |
|
MD5 | c40ca4ef1175e51fbb3a3cbea3457d5d |
|
BLAKE2b-256 | 6d2323192e6388fe094dd028b26b9fdcd6c94ae933d7082fde9a3db1a7e7e000 |
Close
Hashes for mglg-0.2.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a91109b7d29602972636007afc791c2582ba29f0257c0fdfbcd220976021f9b |
|
MD5 | 708fd55532a8b89d59f1899510fbe9ee |
|
BLAKE2b-256 | 723bc968e229c8914cc1b1cf9572cf43ebbd34e88d90d706cf35d1000bc4acaf |
Close
Hashes for mglg-0.2.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24223d94f681ea77fc2eaf03007fdd742a19d14a100a600c19036c9d065da164 |
|
MD5 | cd7c8c320da327b24a952adbd16e6498 |
|
BLAKE2b-256 | ca3a9a558d2d5a80a1ecd2b8b85342ecf194a3b9ada03a3e246a7e657e22c894 |
Close
Hashes for mglg-0.2.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16b35c43a33b3e045c72ad193340d51ed92c94473634492760a25b238c499880 |
|
MD5 | 2630b755538f7e270847064c6da00070 |
|
BLAKE2b-256 | fdb5dc82f07849c751374b47fc708d2b46ad66b8e2bc7d45add93f4dd3a1827a |
Close
Hashes for mglg-0.2.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0affb4f1800ac574d94f2548f4fcf85bca82c95ad0294fed83826b3db388ad5 |
|
MD5 | 686a41a3ef1d92f7fb9ab34a1c7f1958 |
|
BLAKE2b-256 | f015fc149643ea0de2d6356b05c8da522eca4ecfedccf1fc5fa215af4d9ddcb2 |
Close
Hashes for mglg-0.2.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7ba074c92a53a3da57bf312f6a6745d29801b02294e3aef626b0a14fbd7d5fa |
|
MD5 | a033b2ad2957d0b2cb179df9caf9f257 |
|
BLAKE2b-256 | 1dafd84755c05c8ecbc037ea5a2fffc993aa274fc6c5b3d48e50307b6c3a7774 |
Close
Hashes for mglg-0.2.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e3c3f2fdd53dfdd294089767b379b146fb5e738b8074b529f53d1a73aa34d64 |
|
MD5 | 3545bc6bc550a0d694c2684d03f2bbdf |
|
BLAKE2b-256 | ff8d6e1ad40e1bab581d1db3ebafac273aba1a5a7cc36eb5e47867ff30efdecc |
Close
Hashes for mglg-0.2.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a201974e9ac354165240a959bbd0a8b53eb9821bc34a788f8ac672a410d370c |
|
MD5 | e5ef3c38a6203449edd0abf5547df9b1 |
|
BLAKE2b-256 | 8b614c7980d3f9d17d50262245cf66d8544e052825da85694c8309bebc38c4f2 |
Close
Hashes for mglg-0.2.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 457a75276a5e99f6a1968c750dc1c849b4d32e5699500ce52ada4b68c91bb8e7 |
|
MD5 | 88cf45fe3b00b8ea6599499ce5c47f90 |
|
BLAKE2b-256 | 1b88dce87a3877e01176325d2ab2e7c29561a80dfddce3118029a291e46b277c |
Close
Hashes for mglg-0.2.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c856accfc7bbc752c52d03d78365f9f7361b49e7b93ba8ed633d32ee32fa97b7 |
|
MD5 | 7726d5ceecb3b06b35dbe4d24a244093 |
|
BLAKE2b-256 | 08d3a024a8a3f5f62eedc3b6f4da0424efbf3a436148a68ba9714d54df8de2d9 |