From 0084ea18ef966c47bfbccf7a745649e9eefb8aae Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sun, 6 Dec 2020 15:51:18 +0100 Subject: [PATCH] Disabled EmojiOne fallback font, it makes Telegram crash --- bin/font_update | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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