Skip to content

Commit

Permalink
fix font loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Tropix126 committed Jan 12, 2024
1 parent 98cf6b9 commit 918158f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const {

<!-- Preload Fonts -->
<link rel="preload" href="/fonts/Manrope-VariableFont_wght.woff2" as="font" crossorigin="anonymous">
<link rel="preload" href="/fonts/Iosevka-Fixed-Extralight-latin-ext.woff2" as="font" crossorigin="anonymous">
<link rel="preload" href="/fonts/iosevka-fixed_latin-ext.woff2" as="font" crossorigin="anonymous">
<link rel="preload" href="/fonts/iosevka-fixed-extralight_latin-ext.woff2" as="font" crossorigin="anonymous">

<!-- OpenGraph Page Metadata -->
<meta property="og:site_name" content={name} />
Expand All @@ -57,18 +58,25 @@ const {
</html>

<style is:global>
@font-face {
font-family: "Iosevka";
font-style: ultralight;
font-weight: 200;
src: url("/fonts/iosevka-fixed-extralight_latin-ext.woff2") format("woff2");
unicode-range: U+0000-00FF;
}

@font-face {
font-family: "Iosevka";
font-style: normal;
font-weight: 200 400;
src: url("/fonts/Iosevka-Fixed-Extralight-latin-ext.woff2") format("woff2"),
url("/fonts/Iosevka-Fixed-latin-ext.woff2") format("woff2");
font-weight: normal;
src: url("/fonts/iosevka-fixed_latin-ext.woff2") format("woff2");
unicode-range: U+0000-00FF;
}

@font-face {
font-family: "Manrope";
font-weight: 100 900;
font-weight: 200 800;
font-style: normal;
font-display: swap;
src: url("/fonts/Manrope-VariableFont_wght.woff2") format("woff2");
Expand Down

0 comments on commit 918158f

Please sign in to comment.