From 7d0f764906f8c4b0931e9cdd7a809a2e6ad85209 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 1 Jun 2018 14:33:32 -0400 Subject: [PATCH] Fix #45: Hardcode the font cache --- matplotlib/Makefile | 1 + matplotlib/fontList.json | 1100 +++++++++++++++++ matplotlib/patches/hardcoded_font_cache.patch | 11 + 3 files changed, 1112 insertions(+) create mode 100644 matplotlib/fontList.json create mode 100644 matplotlib/patches/hardcoded_font_cache.patch diff --git a/matplotlib/Makefile b/matplotlib/Makefile index 314c83dc2..a382fd321 100644 --- a/matplotlib/Makefile +++ b/matplotlib/Makefile @@ -84,6 +84,7 @@ $(HOSTBUILD)/lib.$(PLATFORMSLUG)/matplotlib/__init__.py: $(ROOT)/.patched $(BUILD)/__init__.py: $(HOSTBUILD)/lib.$(PLATFORMSLUG)/matplotlib/__init__.py [ -d $(ROOT)/build ] || mkdir $(ROOT)/build cp -r $(HOSTBUILD)/lib.$(PLATFORMSLUG)/matplotlib $(ROOT)/build && \ + cp $(ROOT)/fontList.json $(BUILD) ( \ cd $(BUILD); \ find . -name "*.so" -type f -delete; \ diff --git a/matplotlib/fontList.json b/matplotlib/fontList.json new file mode 100644 index 000000000..9efd2b79d --- /dev/null +++ b/matplotlib/fontList.json @@ -0,0 +1,1100 @@ +{ + "_version": 201, + "_FontManager__default_weight": "normal", + "default_size": null, + "ttffiles": [ + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Oblique.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXNonUniIta.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXNonUniBol.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmtt10.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmss10.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmsy10.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmex10.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizFourSymReg.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmmi10.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizFourSymBol.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmb10.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmr10.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizTwoSymReg.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerifDisplay.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizThreeSymBol.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXGeneralItalic.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-BoldOblique.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXGeneral.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXGeneralBol.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXGeneralBolIta.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Bold.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizThreeSymReg.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXNonUniBolIta.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizOneSymReg.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizTwoSymBol.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXNonUni.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizFiveSymReg.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans-Bold.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif-Italic.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif-Bold.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif-BoldItalic.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans-BoldOblique.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans-Oblique.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansDisplay.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif.ttf", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizOneSymBol.ttf" + ], + "defaultFamily": { + "ttf": "DejaVu Sans", + "afm": "Helvetica" + }, + "defaultFont": { + "ttf": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Oblique.ttf", + "afm": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Times-Bold.afm" + }, + "ttflist": [ + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Oblique.ttf", + "name": "DejaVu Sans Mono", + "style": "oblique", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXNonUniIta.ttf", + "name": "STIXNonUnicode", + "style": "italic", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXNonUniBol.ttf", + "name": "STIXNonUnicode", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmtt10.ttf", + "name": "cmtt10", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmss10.ttf", + "name": "cmss10", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmsy10.ttf", + "name": "cmsy10", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmex10.ttf", + "name": "cmex10", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizFourSymReg.ttf", + "name": "STIXSizeFourSym", + "style": "normal", + "variant": "normal", + "weight": "regular", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmmi10.ttf", + "name": "cmmi10", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizFourSymBol.ttf", + "name": "STIXSizeFourSym", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmb10.ttf", + "name": "cmb10", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/cmr10.ttf", + "name": "cmr10", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizTwoSymReg.ttf", + "name": "STIXSizeTwoSym", + "style": "normal", + "variant": "normal", + "weight": "regular", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf", + "name": "DejaVu Sans", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerifDisplay.ttf", + "name": "DejaVu Serif Display", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizThreeSymBol.ttf", + "name": "STIXSizeThreeSym", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXGeneralItalic.ttf", + "name": "STIXGeneral", + "style": "italic", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-BoldOblique.ttf", + "name": "DejaVu Sans Mono", + "style": "oblique", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXGeneral.ttf", + "name": "STIXGeneral", + "style": "normal", + "variant": "normal", + "weight": "regular", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXGeneralBol.ttf", + "name": "STIXGeneral", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXGeneralBolIta.ttf", + "name": "STIXGeneral", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Bold.ttf", + "name": "DejaVu Sans Mono", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono.ttf", + "name": "DejaVu Sans Mono", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizThreeSymReg.ttf", + "name": "STIXSizeThreeSym", + "style": "normal", + "variant": "normal", + "weight": "regular", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXNonUniBolIta.ttf", + "name": "STIXNonUnicode", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizOneSymReg.ttf", + "name": "STIXSizeOneSym", + "style": "normal", + "variant": "normal", + "weight": "regular", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizTwoSymBol.ttf", + "name": "STIXSizeTwoSym", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXNonUni.ttf", + "name": "STIXNonUnicode", + "style": "normal", + "variant": "normal", + "weight": "regular", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizFiveSymReg.ttf", + "name": "STIXSizeFiveSym", + "style": "normal", + "variant": "normal", + "weight": "regular", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans-Bold.ttf", + "name": "DejaVu Sans", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif-Italic.ttf", + "name": "DejaVu Serif", + "style": "italic", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif-Bold.ttf", + "name": "DejaVu Serif", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif-BoldItalic.ttf", + "name": "DejaVu Serif", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans-BoldOblique.ttf", + "name": "DejaVu Sans", + "style": "oblique", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans-Oblique.ttf", + "name": "DejaVu Sans", + "style": "oblique", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansDisplay.ttf", + "name": "DejaVu Sans Display", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif.ttf", + "name": "DejaVu Serif", + "style": "normal", + "variant": "normal", + "weight": 400, + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/STIXSizOneSymBol.ttf", + "name": "STIXSizeOneSym", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + } + ], + "afmfiles": [ + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Times-Bold.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Helvetica-Oblique.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pplbi8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pplri8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/ptmri8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/ptmbi8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pbkli8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pzdr.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pagdo8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pbkdi8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pagko8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pcrb8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pcrr8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvb8an.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvr8an.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/cmr10.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvbo8an.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvro8an.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Symbol.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Helvetica-BoldOblique.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pcrbo8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pbkl8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pbkd8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pcrro8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Helvetica.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/psyr.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvbo8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pagk8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pagd8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvlo8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvro8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Courier.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pzcmi8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Courier-Oblique.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/ptmr8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/ptmb8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Helvetica-Bold.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/ZapfDingbats.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pncbi8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pncri8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/cmmi10.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/cmsy10.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/cmex10.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/cmtt10.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Times-Roman.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Times-Italic.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvl8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvb8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvr8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pncr8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Courier-Bold.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pplb8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pplr8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Courier-BoldOblique.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/putri8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/putbi8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/putb8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/putr8a.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Times-BoldItalic.afm", + "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pncb8a.afm" + ], + "afmlist": [ + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Times-Bold.afm", + "name": "Times", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Helvetica-Oblique.afm", + "name": "Helvetica", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pplbi8a.afm", + "name": "Palatino", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pplri8a.afm", + "name": "Palatino", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/ptmri8a.afm", + "name": "Times", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/ptmbi8a.afm", + "name": "Times", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pbkli8a.afm", + "name": "ITC Bookman", + "style": "italic", + "variant": "normal", + "weight": "light", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pzdr.afm", + "name": "ITC Zapf Dingbats", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pagdo8a.afm", + "name": "ITC Avant Garde Gothic", + "style": "italic", + "variant": "normal", + "weight": "demi", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pbkdi8a.afm", + "name": "ITC Bookman", + "style": "italic", + "variant": "normal", + "weight": "demi", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pagko8a.afm", + "name": "ITC Avant Garde Gothic", + "style": "italic", + "variant": "normal", + "weight": "book", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pcrb8a.afm", + "name": "Courier", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pcrr8a.afm", + "name": "Courier", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvb8an.afm", + "name": "Helvetica", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "condensed", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvr8an.afm", + "name": "Helvetica", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "condensed", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/cmr10.afm", + "name": "Computer Modern", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvbo8an.afm", + "name": "Helvetica", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "condensed", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvro8an.afm", + "name": "Helvetica", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "condensed", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Symbol.afm", + "name": "Symbol", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Helvetica-BoldOblique.afm", + "name": "Helvetica", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pcrbo8a.afm", + "name": "Courier", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pbkl8a.afm", + "name": "ITC Bookman", + "style": "normal", + "variant": "normal", + "weight": "light", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pbkd8a.afm", + "name": "ITC Bookman", + "style": "normal", + "variant": "normal", + "weight": "demi", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pcrro8a.afm", + "name": "Courier", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Helvetica.afm", + "name": "Helvetica", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/psyr.afm", + "name": "Symbol", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvbo8a.afm", + "name": "Helvetica", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pagk8a.afm", + "name": "ITC Avant Garde Gothic", + "style": "normal", + "variant": "normal", + "weight": "book", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pagd8a.afm", + "name": "ITC Avant Garde Gothic", + "style": "normal", + "variant": "normal", + "weight": "demi", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvlo8a.afm", + "name": "Helvetica", + "style": "italic", + "variant": "normal", + "weight": "light", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvro8a.afm", + "name": "Helvetica", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Courier.afm", + "name": "Courier", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pzcmi8a.afm", + "name": "ITC Zapf Chancery", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Courier-Oblique.afm", + "name": "Courier", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/ptmr8a.afm", + "name": "Times", + "style": "normal", + "variant": "normal", + "weight": "roman", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/ptmb8a.afm", + "name": "Times", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Helvetica-Bold.afm", + "name": "Helvetica", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/ZapfDingbats.afm", + "name": "ZapfDingbats", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pncbi8a.afm", + "name": "New Century Schoolbook", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pncri8a.afm", + "name": "New Century Schoolbook", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/cmmi10.afm", + "name": "Computer Modern", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/cmsy10.afm", + "name": "Computer Modern", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/cmex10.afm", + "name": "Computer Modern", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/cmtt10.afm", + "name": "Computer Modern", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Times-Roman.afm", + "name": "Times", + "style": "normal", + "variant": "normal", + "weight": "roman", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Times-Italic.afm", + "name": "Times", + "style": "italic", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvl8a.afm", + "name": "Helvetica", + "style": "normal", + "variant": "normal", + "weight": "light", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvb8a.afm", + "name": "Helvetica", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/phvr8a.afm", + "name": "Helvetica", + "style": "normal", + "variant": "normal", + "weight": "medium", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pncr8a.afm", + "name": "New Century Schoolbook", + "style": "normal", + "variant": "normal", + "weight": "roman", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Courier-Bold.afm", + "name": "Courier", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pplb8a.afm", + "name": "Palatino", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pplr8a.afm", + "name": "Palatino", + "style": "normal", + "variant": "normal", + "weight": "roman", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Courier-BoldOblique.afm", + "name": "Courier", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/putri8a.afm", + "name": "Utopia", + "style": "italic", + "variant": "normal", + "weight": "regular", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/putbi8a.afm", + "name": "Utopia", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/putb8a.afm", + "name": "Utopia", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/putr8a.afm", + "name": "Utopia", + "style": "normal", + "variant": "normal", + "weight": "regular", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts/Times-BoldItalic.afm", + "name": "Times", + "style": "italic", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + }, + { + "fname": "/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm/pncb8a.afm", + "name": "New Century Schoolbook", + "style": "normal", + "variant": "normal", + "weight": "bold", + "stretch": "normal", + "size": "scalable", + "_class": "FontEntry" + } + ], + "_class": "FontManager" +} diff --git a/matplotlib/patches/hardcoded_font_cache.patch b/matplotlib/patches/hardcoded_font_cache.patch new file mode 100644 index 000000000..c3de4aca4 --- /dev/null +++ b/matplotlib/patches/hardcoded_font_cache.patch @@ -0,0 +1,11 @@ +--- a/lib/matplotlib/font_manager.py 2018-06-01 14:26:50.000683915 -0400 ++++ b/lib/matplotlib/font_manager.py 2018-06-01 14:27:16.803726101 -0400 +@@ -1431,7 +1431,7 @@ + else: + _fmcache = None + +- cachedir = get_cachedir() ++ cachedir = os.path.dirname(__file__) + if cachedir is not None: + _fmcache = os.path.join(cachedir, 'fontList.json') +