Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 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 */
- /* 排除網址之正規表示法由 ettoolong 提供 */
- @charset "UTF-8";
- @namespace url(http://www.w3.org/1999/xhtml);
- @-moz-document regexp("((?!chrome://|telnet://).)*") /* 設定要排除的網址/網站 */
- {
- /* Normal Font Weight */
- @font-face {
- font-family: "Times New Roman";
- font-weight: 400;
- unicode-range: U+4E00-9FFF;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Arial";
- font-weight: 400;
- unicode-range: U+4E00-9FFF;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Arial Unicode MS";
- font-weight: 400;
- unicode-range: U+4E00-9FFF;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Courier";
- font-weight: 400;
- unicode-range: U+4E00-9FFF;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "monospace";
- font-weight: 400;
- src: local(" "), local("Consolas");
- }
- @font-face {
- font-family: "SimSun";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "宋体";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "SimHei";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "NSimSun";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "FangSong";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "KaiTi";
- font-weight: 400;
- src: local(" "), local("DFKai-SB");
- }
- @font-face {
- font-family: "楷体";
- font-weight: 400;
- src: local(" "), local("DFKai-SB");
- }
- @font-face {
- font-family: "DFKai-SB";
- font-weight: 400;
- src: local(" "), local("DFKai-SB");
- }
- @font-face {
- font-family: "Microsoft YaHei";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Microsoft YaHei UI";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "微软雅黑";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "黑体";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "PMingLiU";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "新細明體";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "微軟正黑體";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Microsoft JhengHei";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Microsoft JhengHei UI";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- /* 來自 ccs.hanzi.co 的解決方案,但目前似乎在回退機制上有點問題出現,解除註解可以讓 KillsSerif Style 處理這些字型 */
- @font-face {
- font-family: "Biaodian Pro Sans";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Biaodian Pro Serif";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Biaodian Pro Sans CNS";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Biaodian Pro Serif CNS";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Biaodian Pro Sans GB";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Biaodian Pro Serif GB";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Biaodian Sans";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Biaodian Serif";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- /* 細明體是 Windows 系統下的中文等寬字型,因此如非必要,不建議替換成黑體
- @font-face {
- font-family: "MingLiU";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "細明體";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- */
- /* 針對蘋果作業系統 */
- @font-face {
- font-family: "Heiti TC";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- @font-face {
- font-family: "Heiti SC";
- font-weight: 400;
- src: local(" "), local("Microsoft JhengHei");
- }
- /* Bold Font Weight */
- @font-face {
- font-family: "Times New Roman";
- font-weight: 700;
- unicode-range: U+4E00-9FFF;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Arial";
- font-weight: 700;
- unicode-range: U+4E00-9FFF;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Arial Unicode MS";
- font-weight: 700;
- unicode-range: U+4E00-9FFF;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Courier";
- font-weight: 700;
- unicode-range: U+4E00-9FFF;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "monospace";
- font-weight: 700;
- src: local(" "), local("Consolas");
- }
- @font-face {
- font-family: "SimSun";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "宋体";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "SimHei";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "NSimSun";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "FangSong";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "KaiTi";
- font-weight: 700;
- src: local(" "), local("DFKai-SB");
- }
- @font-face {
- font-family: "楷体";
- font-weight: 700;
- src: local(" "), local("DFKai-SB");
- }
- @font-face {
- font-family: "DFKai-SB";
- font-weight: 700;
- src: local(" "), local("DFKai-SB");
- }
- @font-face {
- font-family: "Microsoft YaHei";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Microsoft YaHei UI";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "微软雅黑";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "黑体";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "PMingLiU";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "新細明體";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "微軟正黑體";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Microsoft JhengHei";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Microsoft JhengHei UI";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- /* 來自 ccs.hanzi.co 的解決方案,但目前似乎在回退機制上有點問題出現,解除註解可以讓 KillsSerif Style 處理這些字型 */
- @font-face {
- font-family: "Biaodian Pro Sans";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Biaodian Pro Serif";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Biaodian Pro Sans CNS";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Biaodian Pro Serif CNS";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Biaodian Pro Sans GB";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Biaodian Pro Serif GB";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Biaodian Sans";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Biaodian Serif";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- /* 細明體是 Windows 系統下的中文等寬字型,因此如非必要,不建議替換成黑體
- @font-face {
- font-family: "MingLiU";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "細明體";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- */
- /* 針對蘋果作業系統 */
- @font-face {
- font-family: "Heiti TC";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- @font-face {
- font-family: "Heiti SC";
- font-weight: 700;
- src: local(" "), local("Microsoft JhengHei Bold");
- }
- /* 文字陰影效果,開啟後會有文字加粗的感覺,粗度建議範圍 0.001~0.01em */
- body {
- text-shadow: 0 0 0.03em;
- }
- }
- /*
- 主旨:此 UserStyle 由 t7yang 整合網路上各方網友的創意, 目的為透過 font-face 語法來讓使用者自訂瀏覽器要使用字型。
- 問題回報:任何問題請寫信至 t7yang(小老鼠)ymail點com
- 更新記錄:http://goo.gl/PhX31f (使用者可對記錄進行評論)
- 授權方式:創用CC之姓名標示─非商業性─相同方式分享
- 本授權條款允許使用者重製、散布、傳輸以及修改著作,但不得為商業目的之使用。若使用者修改該著作時,僅得依本授權條款或與本授權條款類似者來散布該衍生作品。使用時必須按照著作人指定的方式表彰其姓名。
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement