Add ``Humor Sans`` font for ``xkcd`` plots.

This commit is contained in:
Madhur Tandon 2019-01-05 00:57:40 +05:30
parent b66c160dc8
commit 0eb7592179
2 changed files with 13 additions and 1 deletions

View File

@ -25,6 +25,7 @@ build:
cflags: -s USE_FREETYPE=1 -s USE_LIBPNG=1 -s USE_ZLIB=1
ldflags: ../../../../emsdk/emsdk/.emscripten_cache/asmjs/libpng.bc
post: |
wget -O $SITEPACKAGES/matplotlib/mpl-data/fonts/ttf/Humor-Sans.ttf http://antiyawn.com/uploads/Humor-Sans-1.0.ttf
rm -rf $SITEPACKAGES/matplotlib/backends/qt_editor
rm -rf $SITEPACKAGES/matplotlib/backends/web_backend
rm -rf $SITEPACKAGES/sphinxext

View File

@ -40,7 +40,8 @@
"/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans-Oblique.ttf",
"/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansDisplay.ttf",
"/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif.ttf",
"/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizOneSymBol.ttf"
"/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizOneSymBol.ttf",
"/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/ttf/Humor-Sans.ttf"
],
"defaultFamily": {
"ttf": "DejaVu Sans",
@ -430,6 +431,16 @@
"stretch": "normal",
"size": "scalable",
"_class": "FontEntry"
},
{
"fname": "/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/ttf/Humor-Sans.ttf",
"name": "Humor Sans",
"style": "normal",
"variant": "normal",
"weight": 400,
"stretch": "normal",
"size": "scalable",
"_class": "FontEntry"
}
],
"afmfiles": [