Skip to content

Instantly share code, notes, and snippets.

@littlebtc
Created July 19, 2014 16:50
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 littlebtc/ecfbcb69bbde917593e4 to your computer and use it in GitHub Desktop.
Save littlebtc/ecfbcb69bbde917593e4 to your computer and use it in GitHub Desktop.
「我也要用 Noto Sans」 OS X 10.9 篇

警告:小B 不負責造成電腦變成磚塊的可能性(喂

安裝字體

  1. 下載 Noto Sans 繁簡體字體包,全部的 OTF 檔都丟進 /Library/Fonts
  2. 為了避免登入畫面破字,要修改這些檔案的權限。全部改 644,而且 Owner 要改 root(如果你有潔癖,可以順便把 Group 改 wheel :P)。

修改系統字體

  1. 找到 /System/Library/Frameworks/CoreText.framework
  2. 打開這包,裡頭有個 Resources,把其中 DefaultFontFallbacks.plistCTPresetFallbacks.plist(10.9 需要)兩個檔案複製到你的文件夾或任何你有權限編輯的地方
  3. 備份這兩個檔案起來以免你改壞
  4. 分別用 Xcode 改這兩個檔案,用 Find -> Find and Replace 進行取代大法!!!大致上要改四個,下述。
  5. 兩個都改好之後把 plist 檔案複製並取代掉本來的檔案。
  6. 登出或重開機,Good Luck :)

要改的字體:

  • STHeitiTC-Light -> NotoSansHant-DemiLight
  • STHeitiTC-Medium -> NotoSansHant-Medium
  • STHeitiSC-Light -> NotoSansHans-DemiLight
  • STHeitiSC-Medium -> NotoSansHans-Medium

粗細不滿意歡迎自己亂改 XDDDD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment