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";
|
||||
src: url("/fonts/lora.ttf") format("truetype-variations");
|
||||
font-weight: 100 700;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Lora";
|
||||
src: url("/fonts/lora-italic.ttf") format("truetype-variations");
|
||||
font-weight: 100 700;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
html {
|
||||
font-family: "Lora", system-ui, sans-serif;
|
||||
|
|
Loading…
Reference in a new issue