Skip to content

Commit

Permalink
docs: Switch to local fonts due to Google changing their filename con…
Browse files Browse the repository at this point in the history
…stantly
  • Loading branch information
ntucker committed Sep 11, 2023
1 parent fcdaf42 commit f07c2fb
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 8 deletions.
16 changes: 8 additions & 8 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,31 +62,31 @@ module.exports = {
},
{
rel: 'preload',
href: 'https://fonts.gstatic.com/s/rubik/v28/iJWEBXyIfDnIV7nEnX661A.woff2',
href: '/font/Roboto-Mono.woff2',
as: 'font',
type: 'font/woff2',
crossOrigin: true,
crossOrigin: 'anonymous',
},
{
rel: 'preload',
href: 'https://fonts.gstatic.com/s/robotomono/v22/L0x7DF4xlVMF-BfR8bXMIjhOm32WWg.woff2',
href: '/font/Roboto-Mono-Italic.woff2',
as: 'font',
type: 'font/woff2',
crossOrigin: true,
crossOrigin: 'anonymous',
},
{
rel: 'preload',
href: 'https://fonts.gstatic.com/s/rubik/v28/iJWKBXyIfDnIV7nBrXw.woff2',
href: '/font/Rubik.woff2',
as: 'font',
type: 'font/woff2',
crossOrigin: true,
crossOrigin: 'anonymous',
},
{
rel: 'preload',
href: 'https://fonts.gstatic.com/s/robotomono/v22/L0x5DF4xlVMF-BfR8bXMIjhLq38.woff2',
href: '/font/Rubik-Italic.woff2',
as: 'font',
type: 'font/woff2',
crossOrigin: true,
crossOrigin: 'anonymous',
},
{
rel: 'preload',
Expand Down
40 changes: 40 additions & 0 deletions website/static/css/font.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,43 @@
src: url('../font/Alternox-Semi-Bold.otf');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
font-family: 'Roboto Mono';
font-style: italic;
font-weight: 100 700;
font-display: swap;
src: url('../font/Roboto-Mono-Italic.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 100 700;
font-display: swap;
src: url('../font/Roboto-Mono.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
font-family: 'Rubik';
font-style: italic;
font-weight: 300 900;
font-display: swap;
src: url('../font/Rubik-Italic.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
font-family: 'Rubik';
font-style: normal;
font-weight: 300 900;
font-display: swap;
src: url('../font/Rubik.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
Binary file added website/static/font/Roboto-Mono-Italic.woff2
Binary file not shown.
Binary file added website/static/font/Roboto-Mono.woff2
Binary file not shown.
Binary file added website/static/font/Rubik-Italic.woff2
Binary file not shown.
Binary file added website/static/font/Rubik.woff2
Binary file not shown.

0 comments on commit f07c2fb

Please sign in to comment.