Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Google Fonts with self hosted fonts #324

Merged
merged 1 commit into from
Jan 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@
<meta name="twitter:creator" content="@bisq_network">
<link rel="canonical" href="{{ page.url }}">
{% if page.lang == "ja" %}
<link href="https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c" rel="stylesheet">
<link href="/css/jafont.css" rel="stylesheet">
{% else %}
RiccardoMasutti marked this conversation as resolved.
Show resolved Hide resolved
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono:200" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<link href="/css/fonts.css" rel="stylesheet">
{% endif %}

<style>
Expand Down
141 changes: 141 additions & 0 deletions css/fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
---
# this ensures Jekyll reads the file to be transformed into CSS later
# only Main files contain this front matter, not partials.
---

/* ibm-plex-mono-200 - latin */
@font-face {
font-family: 'IBM Plex Mono';
font-style: normal;
font-weight: 200;
src: local('IBM Plex Mono ExtraLight'), local('IBMPlexMono-ExtraLight'),
url('../fonts/ibm-plex-mono-v5-latin-200.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-mono-v5-latin-200.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* ibm-plex-sans-100 - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 100;
src: local('IBM Plex Sans Thin'), local('IBMPlexSans-Thin'),
url('../fonts/ibm-plex-sans-v7-latin-100.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-100.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-100italic - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: italic;
font-weight: 100;
src: local('IBM Plex Sans Thin Italic'), local('IBMPlexSans-ThinItalic'),
url('../fonts/ibm-plex-sans-v7-latin-100italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-100italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-200 - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 200;
src: local('IBM Plex Sans ExtraLight'), local('IBMPlexSans-ExtraLight'),
url('../fonts/ibm-plex-sans-v7-latin-200.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-200.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-200italic - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: italic;
font-weight: 200;
src: local('IBM Plex Sans ExtraLight Italic'), local('IBMPlexSans-ExtraLightItalic'),
url('../fonts/ibm-plex-sans-v7-latin-200italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-200italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-300 - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 300;
src: local('IBM Plex Sans Light'), local('IBMPlexSans-Light'),
url('../fonts/ibm-plex-sans-v7-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-300italic - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: italic;
font-weight: 300;
src: local('IBM Plex Sans Light Italic'), local('IBMPlexSans-LightItalic'),
url('../fonts/ibm-plex-sans-v7-latin-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-regular - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 400;
src: local('IBM Plex Sans'), local('IBMPlexSans'),
url('../fonts/ibm-plex-sans-v7-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-italic - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: italic;
font-weight: 400;
src: local('IBM Plex Sans Italic'), local('IBMPlexSans-Italic'),
url('../fonts/ibm-plex-sans-v7-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-500 - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 500;
src: local('IBM Plex Sans Medium'), local('IBMPlexSans-Medium'),
url('../fonts/ibm-plex-sans-v7-latin-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-500italic - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: italic;
font-weight: 500;
src: local('IBM Plex Sans Medium Italic'), local('IBMPlexSans-MediumItalic'),
url('../fonts/ibm-plex-sans-v7-latin-500italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-500italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-600 - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 600;
src: local('IBM Plex Sans SemiBold'), local('IBMPlexSans-SemiBold'),
url('../fonts/ibm-plex-sans-v7-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-600italic - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: italic;
font-weight: 600;
src: local('IBM Plex Sans SemiBold Italic'), local('IBMPlexSans-SemiBoldItalic'),
url('../fonts/ibm-plex-sans-v7-latin-600italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-600italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-700 - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 700;
src: local('IBM Plex Sans Bold'), local('IBMPlexSans-Bold'),
url('../fonts/ibm-plex-sans-v7-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-700italic - latin */
@font-face {
font-family: 'IBM Plex Sans';
font-style: italic;
font-weight: 700;
src: local('IBM Plex Sans Bold Italic'), local('IBMPlexSans-BoldItalic'),
url('../fonts/ibm-plex-sans-v7-latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/ibm-plex-sans-v7-latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
14 changes: 14 additions & 0 deletions css/jafont.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# this ensures Jekyll reads the file to be transformed into CSS later
# only Main files contain this front matter, not partials.
---

/* m-plus-rounded-1c-regular - japanese */
@font-face {
font-family: 'M PLUS Rounded 1c';
font-style: normal;
font-weight: 400;
src: local('M PLUS Rounded 1c'), local('MPLUSRounded1c-Regular'),
url('../fonts/m-plus-rounded-1c-v10-japanese-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/m-plus-rounded-1c-v10-japanese-regular.woff') format('woff'), /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
Binary file added fonts/ibm-plex-mono-v5-latin-200.woff
Binary file not shown.
Binary file added fonts/ibm-plex-mono-v5-latin-200.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-100.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-100.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-100italic.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-100italic.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-200.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-200.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-200italic.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-200italic.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-300.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-300.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-300italic.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-300italic.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-500.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-500.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-500italic.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-500italic.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-600.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-600.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-600italic.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-600italic.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-700.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-700.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-700italic.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-700italic.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-italic.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-italic.woff2
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-regular.woff
Binary file not shown.
Binary file added fonts/ibm-plex-sans-v7-latin-regular.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.