🔤 Font Preview Tool
Preview how a line of text renders across system fonts side by side, and click a card to copy its font-family CSS.
📐 計算公式 / 原理
字型檢索:按字型名稱關鍵詞匹配(忽略大小寫),無關鍵詞時顯示全部;分類下無匹配字型時該分類整組隱藏
用系統字型棧分別渲染同一段文字並並排對比,點選卡片即可複製對應 font-family 宣告;用於快速挑選與核對字型。
📌 示例文字(一鍵填入)
🖥️ Current preview platform & font fallback
| Font | Windows | macOS | Android | iOS |
|---|
✓ = commonly preinstalled, — = usually needs separate installation. Fallbacks are tried left to right; the first locally available font applies. When all are missing it falls back to sans-serif/system-ui, and the preview will differ from the labeled font.
📚 深度解析:字型預覽器
💡 常見使用場景
- 選正文字型。
- 對比同族字重。
- 做字型規範樣張。
預覽 "ToolBox 工具箱"
輸入:文字、字號 18/24、字重 400/700。
處理:逐字型渲染。
輸出:並列預覽,可比對。結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
❓ 常見問題(FAQ)
- 本地沒有的字型?
- 僅顯示當前瀏覽器已載入的字型;某裝置未安裝該字型時會回退到系統預設字型。預覽效果取決於本機系統字型,Windows / macOS / Android / iOS 的可用字型集不同,複製到其它裝置或系統後實際顯示可能與預覽不一致。結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
- 結果以什麼為準?
- 以瀏覽器即時計算為準,正式專案請以設計系統與實測為準。
- 會儲存或上傳我的內容嗎?
- 結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Line height and spacing | enlarged text needs line height of 1.5 and paragraph spacing of 2 | WCAG 2.2 (1.4.12) |
| Font loading | font-display swap renders a fallback first to avoid invisible text | CSS Fonts Level 4 |
| Size units | rem follows the root size, em the parent, px stays absolute | CSS Values and Units Level 4 |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準