Skip to content

Commit 96c9824

Browse files
committed
fix for local font
1 parent ec31977 commit 96c9824

File tree

6 files changed

+19
-2
lines changed

6 files changed

+19
-2
lines changed

src/app.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11

22

3-
4-
@import url(//db.onlinewebfonts.com/c/8eea7efc212b74ac89dcf5cd3d0e0572?family=HandelGotDBol);
3+
@font-face {
4+
font-family: "HandelGotDBol";
5+
src: url("/fonts/HandelGotDBol/HandelGotDBol.eot"),
6+
url("/fonts/HandelGotDBol/HandelGotDBol.woff2") format("woff2"),
7+
url("/fonts/HandelGotDBol/HandelGotDBol.woff") format("woff"),
8+
url("/fonts/HandelGotDBol/HandelGotDBol.ttf") format("truetype");
9+
font-weight: normal;
10+
font-style: normal;
11+
font-display: swap;
12+
}
513

614

715
body {
16+
font-family: 'HandelGotDBol', sans-serif;
817
background: #f0f0f0;
918
font-family: 'Open Sans', sans-serif;
1019
margin: 0;

src/routes/+layout.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
<meta name="keywords" content="mRemoteNG, remote connections, remote desktop, RDP, VNC, SSH, Telnet, mRemote, mRemoteX" />
2727
<meta name="author" content="mRemoteNG Team" />
2828

29+
<link
30+
rel="preload"
31+
href="/fonts/HandelGotDBol/HandelGotDBol.woff2"
32+
as="font"
33+
type="font/woff2"
34+
crossorigin="anonymous"
35+
/>
36+
2937
<link
3038
rel="icon"
3139
type="image/png"
51.7 KB
Binary file not shown.
51.6 KB
Binary file not shown.
26.2 KB
Binary file not shown.
20.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)