From 5f090409075ff803ca4432b02609f1a547d0072b Mon Sep 17 00:00:00 2001 From: Joe Garcia <joe.garcia@ssec.wisc.edu> Date: Wed, 27 Mar 2019 09:32:11 -0500 Subject: [PATCH] link matplotlib fonts to be found by qt5 --- ShellB3/shallbethree.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ShellB3/shallbethree.sh b/ShellB3/shallbethree.sh index 4f12ed26..0f5df0b6 100755 --- a/ShellB3/shallbethree.sh +++ b/ShellB3/shallbethree.sh @@ -5081,6 +5081,8 @@ PATCH fi + + matplotlib_link_fonts } mk_sip() { @@ -5487,6 +5489,18 @@ PATCH } +matplotlib_link_fonts() { + isDarwin && return 0 + + _find_cots_lib QT5LIBPATH libQt5Core $BASE || return 0 + + if [ -e ${QT5LIBPATHLIBDIR}/python${PYFSVER}/site-packages/matplotlib-*-py${PYFSVER}-*.egg/matplotlib/mpl-data/fonts/ttf ] ; then + mkdir ${QT5LIBPATHLIBDIR}/fonts || echo -n + ( cd ${QT5LIBPATHLIBDIR}/fonts && ln -s ../python${PYFSVER}/site-packages/matplotlib-*-py${PYFSVER}-*.egg/matplotlib/mpl-data/fonts/ttf/*.ttf . ) + fi + return 0 +} + qt5_install_fonts() { _find_cots_lib QT5LIBPATH libQt5Core $BASE || oops "Qt5 install couldn't be found" @@ -5657,6 +5671,9 @@ PATCH SYSROOT="" _setup_build_install matplotlib src/optional/matplotlib-${MATPLOTLIBVER}.tar.gz matplotlib-${MATPLOTLIBVER} fi + + matplotlib_link_fonts + } mk_pint() { -- GitLab