2016-01-29 20:56:05 -05:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
|
|
|
# http://paperjs.org/
|
|
|
|
#
|
2018-12-27 02:13:01 -05:00
|
|
|
# Copyright (c) 2011 - 2019, Juerg Lehni & Jonathan Puckey
|
2018-11-10 02:19:34 -05:00
|
|
|
# http://scratchdisk.com/ & https://puckey.studio/
|
2016-01-29 20:56:05 -05:00
|
|
|
#
|
|
|
|
# Distributed under the MIT license. See LICENSE file for details.
|
|
|
|
#
|
|
|
|
# All rights reserved.
|
|
|
|
|
|
|
|
# Download and instal assets, but only if they haven't been installed from the
|
|
|
|
# cache yet.
|
|
|
|
if [ ! -d ~/.assets ] || [ -z "$(ls -A ~/.assets)" ]; then
|
|
|
|
mkdir -p ~/.assets
|
|
|
|
wget http://sourceforge.net/p/tellmatic/git/ci/master/tree/img/arial.ttf?format=raw -O ~/.assets/arial.ttf
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Install fonts each time, as they can't be cached in Travis.
|
|
|
|
mkdir -p ~/.fonts
|
|
|
|
cp -p ~/.assets/arial.ttf ~/.fonts
|
|
|
|
fc-cache -f -v
|