ADD: Preload fonts

This commit is contained in:
Robert Kossessa
2024-02-11 22:44:43 +01:00
parent 489228fa17
commit b563e00f82
2 changed files with 6 additions and 2 deletions

View File

@@ -10,6 +10,10 @@
background: black;
}
</style>
<link rel="preload" href="/src/assets/fonts/ProtoMono-Regular.ttf" as="font" crossorigin="anonymous" />
<link rel="preload" href="/src/assets/fonts/JetBrainsMono%5Bwght%5D.ttf" as="font" crossorigin="anonymous" />
<link rel="preload" href="/src/assets/fonts/SG12.ttf" as="font" crossorigin="anonymous" />
<link rel="preload" href="/src/assets/fonts/andina.ttf" as="font" crossorigin="anonymous" />
</head>
<body class="dark bg-background">
<div id="app"></div>

View File

@@ -91,12 +91,12 @@
@font-face {
font-family: 'PixelLg';
src: url(fonts/SG12.ttf);
src: url(fonts/SG12.ttf), local('monospace');
}
@font-face {
font-family: 'PixelSm';
src: url(fonts/andina.ttf);
src: url(fonts/andina.ttf), local('monospace');
}
.font-pixellg {