You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the downloaded font files to your website's public/static directory. The examples below use a `/fonts/` prefix, but you can adjust this path to match your project structure.
24
26
25
27
Copy the below snippet into your CSS file:
@@ -46,14 +48,54 @@ Copy the below snippet into your CSS file:
46
48
font-style: oblique;
47
49
font-display: swap;
48
50
}
51
+
```
52
+
53
+
### CDN Hosted
54
+
55
+
ServerMono is also available through the [jsDelivr CDN](https://cdn.jsdelivr.net/gh/internet-development/www-server-mono/public/fonts/), so that you can use the fonts with downloading and hosting them yourself.
56
+
57
+
Copy the below snippet into your CSS file:
58
+
59
+
```css
60
+
/* Regular weight - used for normal text */
61
+
@font-face {
62
+
font-family: 'ServerMono';
63
+
src: url('https://cdn.jsdelivr.net/gh/internet-development/www-server-mono/public/fonts/ServerMono-Regular.woff2') format('woff2'), /* Best compression, modern browsers */
64
+
url('https://cdn.jsdelivr.net/gh/internet-development/www-server-mono/public/fonts/ServerMono-Regular.woff') format('woff'), /* Good compression, wider support */
65
+
url('https://cdn.jsdelivr.net/gh/internet-development/www-server-mono/public/fonts/ServerMono-Regular.otf') format('opentype'); /* Largest files, universal support */
66
+
font-weight: normal;
67
+
font-style: normal;
68
+
font-display: swap;
69
+
}
49
70
71
+
/* Slanted variant - used for italic/oblique text */
0 commit comments