Skip to content

Instantly share code, notes, and snippets.

@khsing
Last active December 27, 2015 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khsing/7351657 to your computer and use it in GitHub Desktop.
Save khsing/7351657 to your computer and use it in GitHub Desktop.
#!/sh/bash
cd /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Resources/
for f in DefaultFontFallbacks.plist CTPresetFallbacks.plist;do
plutil -convert xml1 -o - $f| sed 's/STHeitiSC-Light/HiraginoSansGB-W3/g' | sudo plutil -convert binary1 -o $f -
plutil -convert xml1 -o - $f| sed 's/STHeitiSC-Medium/HiraginoSansGB-W6/g' | sudo plutil -convert binary1 -o $f -
done
sudo atsutil databases -remove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment