下次修改
|
前次修改
|
it:mac:change-system-font [2016/06/27 21:33] ghsrobert 建立 |
it:mac:change-system-font [2021/06/06 22:39] (目前版本) ghsrobert [Big Sur] |
* 通說的步驟:[[http://applefans.today/blog/2105154410|【Mac】修改Yosemite系統字體,搶先體驗OS X 10.11 El Capitan的新字體「蘋方」&「San Francisco」 | 蘋果迷 applefans.today]] | * 通說的步驟:[[http://applefans.today/blog/2105154410|【Mac】修改Yosemite系統字體,搶先體驗OS X 10.11 El Capitan的新字體「蘋方」&「San Francisco」 | 蘋果迷 applefans.today]] |
* 這篇說要用 PostScript name:[[https://www.zhihu.com/question/36236113|如何在OS X El Capitan下更換系統中文字體? - Mac - 知乎]] | * 這篇說要用 PostScript name:[[https://www.zhihu.com/question/36236113|如何在OS X El Capitan下更換系統中文字體? - Mac - 知乎]] |
| * /^20181115^/ [[https://github.com/dtinth/YosemiteAndElCapitanSystemFontPatcher|dtinth/YosemiteAndElCapitanSystemFontPatcher: Change the system font of Mac OS X Yosemite.]] |
* 用通說改 .plist 的方法有點麻煩,也搞不懂原理,怕改壞,可否直接用 TCFail 之類的工具? | * 用通說改 .plist 的方法有點麻煩,也搞不懂原理,怕改壞,可否直接用 TCFail 之類的工具? |
| * /^20160628^/ 自行嘗試: |
| - 改 ''/System/Library/Frameworks/CoreText.framework/Versions/A/Resources/CTPresetFallbacks.plist''<div> |
| ^ 將 ^ 取代為 ^ 出現次數 ^ |
| | .AppleTraditionalChineseFont-Bold | STHeitiTC-Medium((黑體-繁沒有粗體啊 囧)) | 9 | |
| | .AppleTraditionalChineseFont-Heavy |:::| 4 | |
| | .AppleTraditionalChineseFont-Light | STHeitiTC-Light | 3 | |
| | .AppleTraditionalChineseFont-Medium | STHeitiTC-Medium | 4 | |
| | .AppleTraditionalChineseFont-Regular | STHeitiTC-Light | 9 | |
| | .AppleTraditionalChineseFont-Thin | STHeitiTC-Light | 2 | |
| | .AppleTraditionalChineseFont-UltraLight | STHeitiTC-Light | 2 | |
| | .AppleTraditionalChineseFont-Semibold((最後確認有沒有遺珠時還是找到這個。真多啊……)) | STHeitiTC-Medium | 2 | |
| </div> |
| - 無法存檔 <<==>> <code>This file could not be opened for writing, probably because it is in use by another application (MacOS Error code: -54)</code>查了一下,El Capitan 確實要停用 System Integrity Protection (SIP);參考: |
| * [[http://blog.ccjeng.com/2015/10/How-To-Disable-System-Integrity-Protection-OSX-El-Capitan.html|如何關閉OS X El Capitan System Integrity Protection (SIP) - [鍵盤自耕農]]] |
| * [[http://www.jianshu.com/p/0572336a0771|如何关闭OSX 10.11 SIP (System Integrity Protection) - 简书]] |
| - 好吧,先把剛剛改好的 ''CTPresetFallbacks.plist'' 內容備份起來,然後照說明重開機進 Recovery 以後停用 SIP 吧 |
| - 改 ''/System/Library/Frameworks/CoreText.framework/Versions/A/Resources/DefaultFontFallbacks.plist''<div> |
| ^ key ^ 將 ^ 取代為 ^ |
| ^ default | .AppleTraditionalChineseFont-Regular | STHeitiTC-Medium | |
| ^ monospace | PingFangTC-Regular | STHeitiTC-Medium | |
| ^ sans-serif |:::|:::| |
| </div> |
| - ''sudo atsutil databases -remove'' 清除字型快取 |
| - ''diskutil repairPermissions /'' 修復磁碟權限↓<code>diskutil: did not recognize verb "repairPermissions"; type "diskutil" for a list</code> |
| * 照 [[http://osxdaily.com/2015/11/04/verify-repair-permissions-mac-os-x/|How to Verify & Repair Permissions in OS X El Capitan]] 用 ''sudo /usr/libexec/repair_packages --verify --standard-pkgs /''\\ 結果找出一堆都是 fax/printer 之類的設定檔 |
| * 可不可以先跳過這步?不想管權限了,反正好像和字型 plist 無關?\\ → **跳過了** |
| - /-重開機後失敗了,嗚嗚嗚-/ 其實好像有改到一部分了? |
| - 哦?剛剛發現其實我的 ''CTPresetFallbacks.plist'' 是沒有更新的?啊,好像是停用 SIP 回來時,TextWrangler 裡面已經是改好的,我就沒再動;原來其實沒有儲存到啊! |
| - 那再改一次 ''CTPresetFallbacks.plist'' |
| - 然後再次 ''sudo atsutil databases -remove'' 清除字型快取 |
| - 再重開機 |
| - 成功了!!!<<大哭>> |
| * 不過 OS X menubar 的黑體-繁似乎確實比蘋方跑下來一點 |
| - Firefox 字型仍是蘋方,應予消滅\\ Firefox 不知道哪一版很雞婆地在 config 裡設:<code> |
| font.name-list.sans-serif.zh-TW;Helvetica,PingFang TC,Heiti TC,LiHei Pro |
| font.name-list.sans-serif.zh-HK;Helvetica,PingFang TC,Heiti TC,LiHei Pro |
| font.name-list.monospace.zh-TW;Courier,PingFang TC,Heiti TC,LiHei Pro |
| font.name-list.monospace.zh-HK;Courier,PingFang TC,Heiti TC,LiHei Pro |
| </code>↑痛快地改掉 <<哈>> Kill Pingfang!\\ (Helvetica 先不動,因為好像有自動用 Lucida Grande 代替了?) |
| - 總之!就算黑體-繁筆劃不是那麼清楚也罷,我就是喜歡喇叭口啊啊啊啊 XD |
| - <todo>Safari 的字型也要改</todo> |
| |
| ===== Big Sur ===== |
| /^20210604^/ 今天早上所查到的,好像近幾年的一些工具,就算有更新支援到 Sierra、Catalina 之類的,似乎也都還不支援 Big Sur。唉。有一好沒兩好,換新硬體架構,大量業餘開發者都還無法跟上啊。 |
| |
| /^20210606^/ 再讀了一些前幾年的或今年的網路文章: |
| * [[https://github.com/LumingYin/macOSLucidaGrande/issues/27|macOS Big Sur · Issue #27 · LumingYin/macOSLucidaGrande]] |
| 看樣子是因為 Apple 每改一次系統,就改一次系統字型的運作機制,所以開發者越來越難參透如何 patch 字型。有的專案在 Sierra 之類的時代就撐不過去了,有的則是無法用於 Big Sur。 |
| |
| 到 [[https://www.apple.com/feedback/macos.html|Feedback - macOS - Apple]] 去發 feature request,八成也只是狗吠火車吧。真是的。 |