diff --git a/bin/font_update b/bin/font_update index e1409ae..81feb2e 100755 --- a/bin/font_update +++ b/bin/font_update @@ -76,7 +76,7 @@ Rubik-Medium.ttf Rubik-Regular.ttf' # https://github.com/eosrei/emojione-color-font/ -FONTS_VARIOUS=$'EmojiOneColor-SVGinOT.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 @@ -179,14 +179,15 @@ else while read -r FONT; do install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" done <<< "$FONTS_RUBIK" - while read -r FONT; do - install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" - done <<< "$FONTS_VARIOUS" + # while read -r FONT; do + # install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" + # done <<< "$FONTS_VARIOUS" 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/" + if [ -L "${HOME}/.config/fontconfig/fonts.conf" ]; then + # Remove the emoji-fallback config that causes crashes in Telegram Desktop (symlink) + rm "${HOME}/.config/fontconfig/fonts.conf" fi # Delete obsolete fonts while read -r FONT; do