From 0a82164421bd18a5a32481a8d13fe9671e011af8 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Tue, 15 Mar 2016 15:13:14 +0100 Subject: [PATCH] Support for various fonts, in this case emojione colour font --- bin/font_update | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/font_update b/bin/font_update index 28d55c7..6091b36 100755 --- a/bin/font_update +++ b/bin/font_update @@ -23,6 +23,8 @@ Futura-Std-Bold-Oblique_19041.ttf Futura-Std-Book_19044.ttf Futura-Std-Book-Oblique_19043.ttf' +FONTS_VARIOUS=$'EmojiOneColor-SVGinOT.ttf' + FONTS_DELETE=$'Sauce Code Pro Medium Plus Nerd File Types Plus Font Awesome Plus Octicons Plus Pomicons.ttf Sauce Code Pro Bold Plus Nerd File Types Mono Plus Font Awesome Plus Octicons Plus Pomicons.ttf Sauce Code Pro Medium Plus Nerd File Types Mono Plus Font Awesome Plus Octicons Plus Pomicons.ttf @@ -61,6 +63,18 @@ else while read -r FONT; do install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" done <<< "$FONTS_FUTURA" + while read -r FONT; do + install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" + done <<< "$FONTS_VARIOUS" + # Just to be sure, clear your font cache and restart Firefox + if [ ! -e "${HOME}/.config/fontconfig" ]; then + mkdir -p "${HOME}/.config/fontconfig" + fi + if [ ! -e "${HOME}/.config/fontconfig/fonts.conf" ]; then + ln -s "${SOURCE_DIR}/fonts.conf" "${HOME}/.config/fontconfig/" + fi + fc-cache -f -v + echo 'You might want to restart your browser' # Delete obsolete fonts while read -r FONT; do if [ -L "$DEST_DIR/$FONT" ]; then