可直接删除上方字符并输入预览。
语种预览
简体中文
拉丁字母
日文
韩文
繁体中文
阿拉伯数字
嵌入字体
常规的引入方式,使用 CSS 或 <style> 。
@import url("https://static.zeoseven.com/zsft/301/main/result.css"); body { font-family: "GenWanMin2 TC R"; font-weight: normal; }
使用 HTML 实现标准的预载和冗余措施。
<link rel="preconnect" href="https://static.zeoseven.com" crossorigin /> <link rel="stylesheet" href="https://static.zeoseven.com/zsft/301/main/result.css" onerror="this.href='https://static-host.zeoseven.com/zsft/301/main/result.css'" /> <style> body { font-family: "GenWanMin2 TC R"; font-weight: normal; } </style>
在加载空闲时预取,完成后转为 stylesheet ,实现无阻塞渲染和冗余措施。
<link rel="preload" as="style" crossorigin href="https://static.zeoseven.com/zsft/301/main/result.css" onload="this.rel='stylesheet'" onerror="this.href='https://static-host.zeoseven.com/zsft/301/main/result.css'" /> <noscript> <link rel="stylesheet" href="https://static.zeoseven.com/zsft/301/main/result.css" /> </noscript> <style> body { font-family: "GenWanMin2 TC R"; font-weight: normal; } </style>
使用 JS 引入字体实现无阻塞渲染和冗余措施,但可能会导致字体闪烁。
/* * ZSFT 冗余器 Version 3.1 (LICENSE: MIT, by 秋, zeoseven.com) * L1 不可用时由 L2 提供文件,使用 fetch HEAD 已确保框架兼容性 * ECMAScript 2015+ (ES6+) */ const __zsftCss = `body { font-family: "GenWanMin2 TC R", system-ui, sans-serif }`; // 可以将 __zsftCss 删除变为 undefined ,因为它实际上就是在 head 插入 style ,删除后在其它位置定义正确的 font-family 即可。 ((z, s, f, t) => { setTimeout(()=>{ z=document.head;if(typeof __zsftCss!='undefined')z.insertBefore(document.createElement("style"),(z.firstChild)).innerHTML=__zsftCss; f=(i)=>{return "https://static"+i+"zeoseven.com/zsft/519/main/result.css";}; t=(i)=>{const t=document.createElement("link");t.rel="stylesheet";t.href=i;t.onerror=()=>z.removeChild(t);z.insertBefore(t,(z.firstChild));}; const o=f(s),u=f("-host."); try{fetch(o,{method:"HEAD"}).then(r=>r.status>299?t(u):t(o)).catch(t(u));}catch{t(u)}; }); })(0,".");
让大体积字体像英文字体一样,只需要加载 10KB 左右的文件。
/* * ZSFT 英文子集化选项 * AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890 ,.!?:;- */ @font-face { font-family: "zsft-enmin-301"; src: url("https://static.zeoseven.com/zsft/301/main.woff2") format('woff2'), url("https://static-host.zeoseven.com/zsft/301/main.woff2") format('woff2'); unicode-range: U+0061-007A, U+0041-005A, U+0030-0039, U+002E, U+002C, U+0021, U+003F, U+003A, U+003B, U+002D; } body { font-family: "zsft-enmin-301"; font-weight: normal; }
有时候,其它字重的 font-family 与默认不同,需要根据 CSS 地址中的 font-family 属性来正确引入字体。
Extra Light https://static.zeoseven.com/zsft/301/extra-light/result.css Light https://static.zeoseven.com/zsft/301/light/result.css Medium https://static.zeoseven.com/zsft/301/medium/result.css Regular https://static.zeoseven.com/zsft/301/main/result.css Semi Bold https://static.zeoseven.com/zsft/301/semi-bold/result.css
感到困惑? ZeoSeven 提供了 帮助与支持 其中的 嵌入字体的方法 以及关于 违法违规内容的定义和处理措施。

「源雲明體」是基於思源宋體的而改造的開放原始碼中文字型。
特徵
傳統印刷體風格
請參考 源樣明體(https://github.com/ButTaiwan/genyo-font/tree/master) 的說明。
文字墨暈處理
將「源流明體」更在筆劃交接處都做了朦朧處理,彷彿墨暈或是稍微過曝的效果。
4個字重
提供Light、Regular、Medium、SemiBold等4個字重,能廣泛運用在多種情境。
TrueType格式
字型已經轉換成TrueType格式(.ttf)。 在Word、PowerPoint等軟體支援都較為完整(例如可以正常內嵌在投影片裡)。 對一些老舊的應用程式相容性都較高。 當然,直排橫排都沒有問題!
此為公測版
目前仍是Beta公測版本,未來本專案不排除有大幅更改規格的可能性。 歡迎提供測試反饋,請直接反饋在GitHub的Issues中。 未來亦不保證持續跟隨思源宋體升版。
著作權與授權
本字型是基於 SIL Open Font License 1.1 改造Adobe所開發、發表的「思源宋體」字型。
本字型亦基於 SIL Open Font License 1.1 授權條款免費公開,關於授權合約的內容、免責事項等細節,請詳讀 License 文件。
本字型可自由使用在印刷、影像、網路或任何媒體上,不限個人或商業使用。
您可基於 SIL Open Font License 1.1 的規定再散佈或改造本字型。
github.com/ButTaiwan/genwan-font
随机推荐
简体中文
共产党人不屑于隐瞒自己的观点和意图。他们公开宣布:他们的目的只有用暴力推翻全部现存的社会制度才能达到。让统治阶级在共产主义革命面前发抖吧。无产者在这个革命中失去的只是锁链。他们获得的将是整个世界。英文
The Communists disdain to conceal their views and aims. They openly declare that their ends can be attained only by the forcible overthrow of all existing social conditions. Let the ruling classes tremble at a Communistic revolution.日文
共产党人は自分たちの見解や意図を隠すことを軽蔑しています。彼らは公然と宣言しています:彼らの目的は、すべての現存する社会制度を暴力で推翻することでのみ達成できます。支配阶级は共産主義革命の前に震えざるを得ません。無産者はこの革命で失うのはただの鎖であり、得るのは世界全体であるだけです。韩文
공산당员들은 자신들의 관점과 의도를 숨기는 것을 경멸합니다. 그들은 공개히 선언합니다: 그들의 목표는 모든 기존 사회 조건을 강력하게 무너뜨린다는 것 만이 달성될 수 있습니다. 지배계급은 공산주의 혁명 앞에서 떨어지기 바랍니다.繁体中文
共產黨人不屑於隱瞞自己的觀點和意圖。他們公開宣佈:他們的目的只有用暴力推翻全部現存的社會制度才能達到。讓統治階級在共產主義革命面前發抖吧。無產者在这个革命中失去的只是鎖鏈。他們获得的將是整個世界。