Skip to content

Commit

Permalink
Merge pull request #2 from denog/fonts
Browse files Browse the repository at this point in the history
don't use google fonts, fixes #1
  • Loading branch information
vidister authored Feb 7, 2024
2 parents 22a4758 + 12f8b15 commit a363567
Show file tree
Hide file tree
Showing 11 changed files with 90 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/assets/fonts/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Google Fonts

## Roboto

The roboto font is licensed under the Apache License 2.0 by google, see the [roboto license](https://github.com/google/fonts/blob/main/apache/roboto/LICENSE.txt)

## Roboto Mono

The roboto mono font is licensed under the Apache License 2.0 by google, see [roboto mono license](https://github.com/google/fonts/blob/main/apache/robotomono/LICENSE.txt)
Binary file added docs/assets/fonts/roboto-mono-v23-latin-700.woff2
Binary file not shown.
Binary file not shown.
Binary file added docs/assets/fonts/roboto-v30-latin-300.woff2
Binary file not shown.
Binary file not shown.
Binary file added docs/assets/fonts/roboto-v30-latin-700.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/assets/fonts/roboto-v30-latin-regular.woff2
Binary file not shown.
78 changes: 78 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/* roboto-300 - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: url('/assets/fonts/roboto-v30-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-300italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto';
font-style: italic;
font-weight: 300;
src: url('/assets/fonts/roboto-v30-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-regular - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: url('/assets/fonts/roboto-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto';
font-style: italic;
font-weight: 400;
src: url('/assets/fonts/roboto-v30-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700 - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: url('/assets/fonts/roboto-v30-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto';
font-style: italic;
font-weight: 700;
src: url('/assets/fonts/roboto-v30-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* roboto-mono-regular - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 400;
src: url('/assets/fonts/roboto-mono-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-mono-700 - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 700;
src: url('/assets/fonts/roboto-mono-v23-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root {
--md-text-font: "Roboto";
--md-code-font: "Roboto Mono";
}
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
site_name: DENOG Routing Guide
extra_css:
- stylesheets/extra.css
theme:
name: material
font: false
palette:
# Palette toggle for light mode
- scheme: default
Expand Down

0 comments on commit a363567

Please sign in to comment.