feat: Subset fonts
This commit is contained in:
parent
b0af4f396d
commit
57239a60c3
3 changed files with 14 additions and 13 deletions
|
@ -121,25 +121,25 @@ code.inline {
|
|||
} */
|
||||
|
||||
@font-face {
|
||||
font-family: "iAWriterDuo";
|
||||
src: url("/fonts/iAWriterDuoV.ttf") format('truetype');
|
||||
font-family: "iAWriterDuoSub";
|
||||
src: url("/fonts/iAWriterDuoSubV-subset.ttf") format('truetype');
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "iAWriterDuo";
|
||||
src: url("/fonts/iAWriterDuoV-Italic.ttf") format('truetype');
|
||||
font-family: "iAWriterDuoSub";
|
||||
src: url("/fonts/iAWriterDuoSubV-Italic-subset.ttf") format('truetype');
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "iAWriterMono";
|
||||
src: url("/fonts/iAWriterMonoV.ttf") format('truetype');
|
||||
font-family: "iAWriterMonoSub";
|
||||
src: url("/fonts/iAWriterMonoSubV-subset.ttf") format('truetype');
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "iAWriterMono";
|
||||
src: url("/fonts/iAWriterMonoV-Italic.ttf") format('truetype');
|
||||
font-family: "iAWriterMonoSub";
|
||||
src: url("/fonts/iAWriterMonoSubV-Italic-subset.ttf") format('truetype');
|
||||
font-style: italic;
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ module.exports = {
|
|||
extend: {
|
||||
fontFamily: {
|
||||
mono: [
|
||||
'iAWriterMono',
|
||||
'iAWriterMonoSub',
|
||||
'ui-monospace',
|
||||
'SFMono-Regular',
|
||||
'Menlo',
|
||||
|
@ -51,7 +51,7 @@ module.exports = {
|
|||
'monospace',
|
||||
],
|
||||
sans: [
|
||||
'iAWriterDuo',
|
||||
'iAWriterDuoSub',
|
||||
'ui-sans-serif',
|
||||
'system-ui',
|
||||
'sans-serif',
|
||||
|
|
|
@ -188,9 +188,10 @@ defmodule PreDotHn do
|
|||
<meta name="author" content="Robert Prehn">
|
||||
<link rel="alternate" type="application/rss+xml" title="Robert Prehn" href="https://pre.hn/feed.rss">
|
||||
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||
<link
|
||||
rel="icon"
|
||||
href={"data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%221.1em%22 font-size=%2272%22>⌨️</text></svg>"}
|
||||
/>
|
||||
|
||||
<link rel="stylesheet" href="/assets/app.css?v=1.0">
|
||||
|
||||
|
|
Loading…
Reference in a new issue