Skip to content

Commit

Permalink
define fonts locally to avoid downloading via google servers (#288)
Browse files Browse the repository at this point in the history
* define fonts locally to avoid downloading via google servers

* this URL is no web font anyway

* add fonts locally, they'll still be fetched on demand
  • Loading branch information
karussell authored Nov 21, 2022
1 parent 11ac550 commit 1a0b78b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,28 @@
}
}

/* mapilion */
@font-face {
font-family: 'Open Sans';
src: url(./fonts/OpenSans-Variable.ttf) format('truetype');
}

/* maptiler */
@font-face {
font-family: 'Noto Sans';
src: url(./fonts/NotoSans-Regular.ttf) format('truetype');
}

@font-face {
font-family: 'Roboto';
src: url(./fonts/Roboto-Regular.ttf) format('truetype');
}

@font-face {
font-family: 'Roboto Condensed';
src: url(./fonts/RobotoCondensed-Regular.ttf) format('truetype');
}

.sidebarCloseButton {
position: absolute;

Expand Down
Binary file added src/fonts/NotoSans-Regular.ttf
Binary file not shown.
Binary file added src/fonts/OpenSans-Variable.ttf
Binary file not shown.
Binary file added src/fonts/Roboto-Regular.ttf
Binary file not shown.
Binary file added src/fonts/RobotoCondensed-Regular.ttf
Binary file not shown.

0 comments on commit 1a0b78b

Please sign in to comment.