10000 fix font issues in Container build · Hash7/matplotlib@37dea4b · GitHub
[go: up one dir, main page]

Skip to content

Commit 37dea4b

Browse files
committed
fix font issues in Container build
1 parent 6fd57d7 commit 37dea4b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,20 @@ install:
4949
# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
5050
# availible in the Ubuntu version used by Travis but we can manually install the deb from a later
5151
# version since is it basically just a .ttf file
52+
# The current Travis Ubuntu image is to old to search .local/share/fonts so we store fonts in .fonts
5253

5354
# We install ipython to use the console highlighting. From IPython 3 this depends on jsonschema and misture.
5455
# Neihter is installed as a dependency of IPython since they are not used by the IPython console.
5556
- |
5657
if [[ $BUILD_DOCS == true ]]; then
5758
pip install numpydoc linkchecker ipython jsonschema mistune
58-
wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true
59+
wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O Felipa-Regular.ttf
5960
wget http://mirrors.kernel.org/ubuntu/pool/universe/f/fonts-humor-sans/fonts-humor-sans_1.0-1_all.deb
6061
mkdir -p tmp
62+
mkdir -p ~/.fonts
6163
dpkg -x fonts-humor-sans_1.0-1_all.deb tmp
62-
cp tmp/usr/share/fonts/truetype/humor-sans/Humor-Sans.ttf ~/.local/share/fonts/
63-
cp Felipa-Regular.ttf ~/.local/share/fonts/
64+
cp tmp/usr/share/fonts/truetype/humor-sans/Humor-Sans.ttf ~/.fonts
65+
cp Felipa-Regular.ttf ~/.fonts
6466
fc-cache -f -v
6567
fi;
6668
- python setup.py install

0 commit comments

Comments
 (0)
0