Remove Microsoft Core Fonts installation

This commit is contained in:
jschantli committed 2026-10-07 18:32:48 -07:00
1 parent 2528582f8c
commit 8c6b6ebf28
1 file changed
+2 -10
+2 -10
View File
@@ -159,24 +159,16 @@ optimize_dnf() {
install_fonts() {
log_info "----------------------------------------------------"
log_info "Installing Microsoft Core Fonts and Meslo Nerd Font."
log_info "Installing Meslo Nerd Font."
log_info "----------------------------------------------------"
log_info "Updating system and installing prerequisites..."
sudo dnf upgrade --refresh -y
check_status "System upgrade" "critical"
sudo dnf install -y curl cabextract xorg-x11-font-utils fontconfig wget unzip
sudo dnf install -y curl fontconfig wget unzip
check_status "Prerequisites installation" "critical"
log_info "Installing Microsoft Core Fonts..."
if rpm -q msttcore-fonts-installer > /dev/null 2>&1; then
log_warn "Microsoft Core Fonts already installed."
else
sudo dnf install -y https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
check_status "Microsoft Core Fonts installation" "non-critical"
fi
log_info "Installing Meslo Nerd Font..."
FONT_NAME="MesloLGS Nerd Font Mono"
# Redirect instead of `grep -q` so fc-list isn't killed by SIGPIPE (pipefail)