🔤 Text Favicon Generator
📐 工作原理與說明
畫布邊長 = size(下限 16,預設 64);字號 = size × 0.55(bold),文字中心 = (size ÷ 2, size ÷ 2 + size × 0.04);圓角 > 0 時用四段二次貝塞爾繪製圓角矩形路徑再填充,為 0 時直接填充整幅;三檔預覽圓角與字號均按畫布比例等比縮放(16 / 64 / 128 px 檔分別取 radius ÷ size × 檔位邊長、字號 × 0.55),最終 toDataURL 匯出 PNG
把文字或字母渲染為方形圖示(可調字型、字號與配色)並匯出 PNG;適合無 Logo 的小站快速獲得品牌標識。
Type a letter or a short text to build a clean text-based favicon with adjustable colours and fonts for a quick brand mark.
點選生成按鈕
📚 深度解析:文字 Favicon
💡 常見使用場景
- 品牌首字母做圖示。
- 專案縮寫標識。
- 多站區分圖示。
用 "TB" 生成圖示
輸入:文字 TB、底 #FF6B35、字白。
處理:繪製圓底白字。
輸出:多尺寸 favicon 可下載。
❓ 常見問題(FAQ)
- 幾個字合適?
- 1~2 字最清晰;過多在小尺寸會糊。結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
- 生成的程式碼/圖片能直接用嗎?
- 可直接複製使用,建議粘到專案後在瀏覽器實測微調;本工具只生成不託管。
- 會儲存或上傳我的內容嗎?
- 結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Text anchoring | center glyphs with text-anchor and dominant-baseline | W3C SVG 1.1 |
| Small-size constraint | at 16 px strokes blur, so fewer glyphs and heavier weights help | Design practice |
| Vector output | SVG icons scale losslessly; PNG needs one file per size | W3C SVG 1.1 |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準