1. Inter
原版代码:
HTML
<!-- HTML in your document's head -->
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
```css
/* CSS */
:root {
font-family: Inter, sans-serif;
font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
:root { font-family: InterVariable, sans-serif; }
}
Global CDN sponsored by Cloudflare
修改版:
- 在html
<head>中添加:
HTML
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
- 在CSS
body {中添加:
CSS
font-family: InterVariable, sans-serif;
2. Sarasa Gothic 更纱黑体
全部版本
Text
SC Bold
https://fontsapi.zeoseven.com/161/sc-bold/result.css
SC Bold Italic
https://fontsapi.zeoseven.com/161/sc-bold-italic/result.css
SC Extra Light
https://fontsapi.zeoseven.com/161/sc-extra-light/result.css
SC Extra Light
Italic https://fontsapi.zeoseven.com/161/sc-extra-light-italic/result.css
SC Italic
https://fontsapi.zeoseven.com/161/sc-italic/result.css
SC Light
https://fontsapi.zeoseven.com/161/sc-light/result.css
SC Light Italic
https://fontsapi.zeoseven.com/161/sc-light-italic/result.css
SC Regular
https://fontsapi.zeoseven.com/161/main/result.css
SC Semi Bold
https://fontsapi.zeoseven.com/161/sc-semi-bold/result.css
SC Semi Bold Italic
https://fontsapi.zeoseven.com/161/sc-semi-bold-italic/result.css
- 在html
<head>中添加:
HTML
<link rel="preload" href="https://fontsapi.zeoseven.com/161/main/sarasa-gothic-sc.woff2" as="font" type="font/woff2" crossorigin="anonymous">
- 在CSS
body {中添加:
CSS
font-family: Sarasa Gothic SC, sans-serif;