|
本帖最後由 srooo 於 2017-2-10 08:21 編輯
這款一直都有在使用(系統win10 14393.693)目前使用 MacType 1.2016.904.0 + EasyHook v2.7.6035.0 (July 10, 2016) + 字型思源黑體(Source Han Sans)
上傳我的設定檔SR_Noto Sans.ini與相關文件供參考 MEGA空間 ,供各位測試使用,內有字型等文件。
當初瀏覽器跟mactype版本不是很相容(舊版的maxthon可以 新版的不行),後來轉用chrome以至於當時使用Stylish做chrome的渲染,或者可以參考日本所做的patch支援
以下為Stylish對應字型思源黑體(Source Han Sans)的代碼(當初找的很多 後來改成以下代碼後 大部分不會出錯 供各位參考參考 感謝網路上的各位研究)- /* Name: KillSerif Style | Custom font with font-face to Sans Serif font for Firefox */
- /* 使用者仍須到〔選項〕→〔內容〕中把「中文-台灣」和「中文-簡體」設定為微軟正黑體或對應的字型 */
- /* font-face 程式碼源自「第三新夜市仔」 http://blog.yorkxin.org/2012/06/17/assign-fonts-for-specific-characters */
- /* 排除 PTTChrome 之正規表示法由 mayuyu 提供 */
- /* Normal Font Weight */
- @font-face {
- font-family: "Times New Roman";
-
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
-
- @font-face {
- font-family: "Arial";
-
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
-
- @font-face {
- font-family: "Arial Unicode MS";
-
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
-
- @font-face {
- font-family: "Courier";
-
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "monospace";
- src: local(" "), local("Noto Sans Mono CJK TC Regular");
- }
-
- @font-face {
- font-family: "SimSun";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "宋体";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "SimHei";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "NSimSun";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "FangSong";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "KaiTi";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "楷体";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "Microsoft YaHei";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "Microsoft YaHei UI";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "微软雅黑";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "黑体";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "PMingLiU";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "新細明體";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "微軟正黑體";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "Microsoft JhengHei";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "Microsoft JhengHei UI";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- /* 來自 ccs.hanzi.co 的解決方案,但目前似乎在回退機制上有點問題出現,解除註解可以讓 KillsSerif Style 處理這些字型 */
- @font-face {
- font-family: "Biaodian Pro Sans";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
-
- @font-face {
- font-family: "Biaodian Pro Serif";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "Biaodian Pro Sans CNS";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "Biaodian Pro Serif CNS";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "Biaodian Pro Sans GB";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "Biaodian Pro Serif GB";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "Biaodian Sans";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "Biaodian Serif";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- /* 細明體是 Windows 系統下的中文等寬字型,因此如非必要,不建議替換成黑體
- @font-face {
- font-family: "MingLiU";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- @font-face {
- font-family: "細明體";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
- */
-
- /* 針對蘋果作業系統 */
- @font-face {
- font-family: "Heiti TC";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
-
- @font-face {
- font-family: "Heiti SC";
- src: local(" "), local("Noto Sans CJK TC Regular");
- }
-
-
-
- /* Bold Font Weight */
- @font-face {
- font-family: "Times New Roman";
- font-weight: Bold;
-
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
-
- @font-face {
- font-family: "Arial";
- font-weight: Bold;
-
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "monospace";
- font-weight: Bold;
- src: local(" "), local("Noto Sans Mono CJK TC Bold");
- }
-
- @font-face {
- font-family: "SimSun";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "宋体";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "SimHei";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "NSimSun";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "FangSong";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "KaiTi";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "楷体";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "Microsoft YaHei";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "Microsoft YaHei UI";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "微软雅黑";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "黑体";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "PMingLiU";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "新細明體";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "微軟正黑體";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "Microsoft JhengHei";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "Microsoft JhengHei UI";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- /* 來自 ccs.hanzi.co 的解決方案,但目前似乎在回退機制上有點問題出現,解除註解可以讓 KillsSerif Style 處理這些字型 */
- @font-face {
- font-family: "Biaodian Pro Sans";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
-
- @font-face {
- font-family: "Biaodian Pro Serif";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
-
- @font-face {
- font-family: "Biaodian Pro Sans CNS";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
-
- @font-face {
- font-family: "Biaodian Pro Serif CNS";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
-
- @font-face {
- font-family: "Biaodian Pro Sans GB";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
-
- @font-face {
- font-family: "Biaodian Pro Serif GB";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
-
- @font-face {
- font-family: "Biaodian Sans";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
-
- @font-face {
- font-family: "Biaodian Serif";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- /* 細明體是 Windows 系統下的中文等寬字型,因此如非必要,不建議替換成黑體
- @font-face {
- font-family: "MingLiU";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- @font-face {
- font-family: "細明體";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- */
-
- /* 針對蘋果作業系統 */
- @font-face {
- font-family: "Heiti TC";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
-
- @font-face {
- font-family: "Heiti SC";
- font-weight: Bold;
- src: local(" "), local("Noto Sans CJK TC Bold");
- }
- /* 文字陰影效果,開啟後會有文字加粗的感覺,粗度建議範圍 0.001~0.01em */
- body {
- text-shadow: 0 0 0.001em;
- }
-
- /*
- 主旨:此 UserStyle 由 t7yang 整合網路上各方網友的創意, 目的為透過 font-face 語法來讓使用者自訂瀏覽器要使用字型。
- 問題回報:任何問題請寫信至 t7yang(小老鼠)ymail點com
- 更新記錄:http://goo.gl/PhX31f (使用者可對記錄進行評論)
- 授權方式:創用CC之姓名標示─非商業性─相同方式分享
- 本授權條款允許使用者重製、散布、傳輸以及修改著作,但不得為商業目的之使用。若使用者修改該著作時,僅得依本授權條款或與本授權條款類似者來散布該衍生作品。使用時必須按照著作人指定的方式表彰其姓名。
- */
複製代碼 |
-
|