Add font-display: swap
This commit is contained in:
parent
3fdd77f9ca
commit
a5d3af71aa
1 changed files with 2 additions and 0 deletions
|
@ -44,12 +44,14 @@ const { title, description } = Astro.props
|
||||||
font-family: "Lora";
|
font-family: "Lora";
|
||||||
src: url("/fonts/lora.ttf") format("truetype-variations");
|
src: url("/fonts/lora.ttf") format("truetype-variations");
|
||||||
font-weight: 100 700;
|
font-weight: 100 700;
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Lora";
|
font-family: "Lora";
|
||||||
src: url("/fonts/lora-italic.ttf") format("truetype-variations");
|
src: url("/fonts/lora-italic.ttf") format("truetype-variations");
|
||||||
font-weight: 100 700;
|
font-weight: 100 700;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
html {
|
html {
|
||||||
font-family: "Lora", system-ui, sans-serif;
|
font-family: "Lora", system-ui, sans-serif;
|
||||||
|
|
Loading…
Reference in a new issue