在Planet使用自訂字型

Mar 14, 2025 at 15:22:35

在自定義代碼那邊的head輸入

<style>
    @font-face {
      font-family: 'Iansui';
      src: url('https://cdn.jsdelivr.net/gh/ButTaiwan/iansui@main/fonts/ttf/Iansui-Regular.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
    }

    body {
      font-family: 'Iansui', sans-serif;
    }
  </style>

這邊是使用iansui的字體
如果有其他有上傳到github的字體,可以自行替換

Tags: