Skip to content

Instantly share code, notes, and snippets.

@andrewpetrochenkov
Last active July 19, 2021 07:44
Show Gist options
  • Save andrewpetrochenkov/c7a44a58e2cae6cf6ea1f5f2174d5b9d to your computer and use it in GitHub Desktop.
Save andrewpetrochenkov/c7a44a58e2cae6cf6ea1f5f2174d5b9d to your computer and use it in GitHub Desktop.
macOS remove unused fonts
#!/usr/bin/env bash
# System font is San Francisco (SF*)
find /System/Library/Fonts -name "Apple Braille*" -exec sudo rm {} \;
find /System/Library/Fonts -name "AppleSD*" -exec sudo rm {} \;
find /System/Library/Fonts -name "AquaKana*" -exec sudo rm {} \;
find /System/Library/Fonts -name "Arabic*" -exec sudo rm {} \;
find /System/Library/Fonts -name "Avenir*" -exec sudo rm {} \;
find /System/Library/Fonts -name "Geeza*" -exec sudo rm {} \;
find /System/Library/Fonts -name "Hiragino*" -exec sudo rm {} \;
find /System/Library/Fonts -name "Kohinoor*" -exec sudo rm {} \;
find /System/Library/Fonts -name "LastResort*" -exec sudo rm {} \;
find /System/Library/Fonts -name "NotoNastaliq*" -exec sudo rm {} \;
find /System/Library/Fonts -name "PingFang*" -exec sudo rm {} \;
find /System/Library/Fonts -name "ST*" -exec sudo rm {} \;
find /System/Library/Fonts -name "Thonburi*" -exec sudo rm {} \;
find /System/Library/Fonts -name "Zap*" -exec sudo rm {} \;
find /System/Library/Fonts -name "ヒ*" -exec sudo rm {} \; # chineese
find /Library/Fonts -name "Al*" -exec sudo rm {} \;
find /Library/Fonts -name "Bangla *" -exec sudo rm {} \;
find /Library/Fonts -name "Bodoni *" -exec sudo rm {} \;
find /Library/Fonts -name "Damascus*" -exec sudo rm {} \;
find /Library/Fonts -name "DIN*" -exec sudo rm {} \;
find /Library/Fonts -name "Diwan*" -exec sudo rm {} \;
find /Library/Fonts -name "EuphemiaCAS*" -exec sudo rm {} \;
find /Library/Fonts -name "Gujarati *" -exec sudo rm {} \;
find /Library/Fonts -name "Hoefler *" -exec sudo rm {} \;
find /Library/Fonts -name "Kailasa*" -exec sudo rm {} \;
find /Library/Fonts -name "Kannada*" -exec sudo rm {} \;
find /Library/Fonts -name "Khmer*" -exec sudo rm {} \;
find /Library/Fonts -name "Mishafi*" -exec sudo rm {} \;
find /Library/Fonts -name "NISC*" -exec sudo rm {} \;
find /Library/Fonts -name "Oriya*" -exec sudo rm {} \;
find /Library/Fonts -name "ST*" -exec sudo rm {} \;
find /Library/Fonts -name "Tamil *" -exec sudo rm {} \;
find /Library/Fonts -name "Telugu *" -exec sudo rm {} \;
find /Library/Fonts -name "Webdings*" -exec sudo rm {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment