mirror of https://github.com/pyodide/pyodide.git
Add ``Humor Sans`` font for ``xkcd`` plots.
This commit is contained in:
parent
b66c160dc8
commit
0eb7592179
|
@ -25,6 +25,7 @@ build:
|
||||||
cflags: -s USE_FREETYPE=1 -s USE_LIBPNG=1 -s USE_ZLIB=1
|
cflags: -s USE_FREETYPE=1 -s USE_LIBPNG=1 -s USE_ZLIB=1
|
||||||
ldflags: ../../../../emsdk/emsdk/.emscripten_cache/asmjs/libpng.bc
|
ldflags: ../../../../emsdk/emsdk/.emscripten_cache/asmjs/libpng.bc
|
||||||
post: |
|
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/qt_editor
|
||||||
rm -rf $SITEPACKAGES/matplotlib/backends/web_backend
|
rm -rf $SITEPACKAGES/matplotlib/backends/web_backend
|
||||||
rm -rf $SITEPACKAGES/sphinxext
|
rm -rf $SITEPACKAGES/sphinxext
|
||||||
|
|
|
@ -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/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/DejaVuSansDisplay.ttf",
|
||||||
"/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif.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": {
|
"defaultFamily": {
|
||||||
"ttf": "DejaVu Sans",
|
"ttf": "DejaVu Sans",
|
||||||
|
@ -430,6 +431,16 @@
|
||||||
"stretch": "normal",
|
"stretch": "normal",
|
||||||
"size": "scalable",
|
"size": "scalable",
|
||||||
"_class": "FontEntry"
|
"_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": [
|
"afmfiles": [
|
||||||
|
|
Loading…
Reference in New Issue