Skip to content

Commit

Permalink
Replace google web fonts by original Inter (v3.15)
Browse files Browse the repository at this point in the history
  • Loading branch information
andmor- committed Mar 17, 2021
1 parent 95b389f commit 95f7568
Show file tree
Hide file tree
Showing 30 changed files with 69 additions and 1,139 deletions.
68 changes: 38 additions & 30 deletions assets/styles/utility/typography.scss
Original file line number Diff line number Diff line change
@@ -1,48 +1,56 @@
/* TYPOGRAPHY */

/* Google Fonts */
/* Deploy google webfonts locally. see: https://google-webfonts-helper.herokuapp.com/fonts */
//@import url("https://fonts.googleapis.com/css?family=Inter:400,400italic,600,600italic,700,700italic");
/* inter-regular - vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic */
/* Inter font from https://github.com/rsms/inter/releases */

@font-face {
font-family: 'Inter';
font-style: normal;
font-style: normal;
font-weight: 400;
src: url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.svg#Inter') format('svg'); /* Legacy iOS */
font-display: swap;
src: url("../fonts/inter/Inter-Regular.woff2?v=3.15") format("woff2"),
url("../fonts/inter/Inter-Regular.woff?v=3.15") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("../fonts/inter/Inter-Italic.woff2?v=3.15") format("woff2"),
url("../fonts/inter/Inter-Italic.woff?v=3.15") format("woff");
}

/* inter-600 - vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Inter';
font-style: normal;
font-style: normal;
font-weight: 600;
src: url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-600.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-600.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-600.woff') format('woff'), /* Modern Browsers */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-600.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-600.svg#Inter') format('svg'); /* Legacy iOS */
font-display: swap;
src: url("../fonts/inter/Inter-SemiBold.woff2?v=3.15") format("woff2"),
url("../fonts/inter/Inter-SemiBold.woff?v=3.15") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 600;
font-display: swap;
src: url("../fonts/inter/Inter-SemiBoldItalic.woff2?v=3.15") format("woff2"),
url("../fonts/inter/Inter-SemiBoldItalic.woff?v=3.15") format("woff");
}

/* inter-700 - vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Inter';
font-style: normal;
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("../fonts/inter/Inter-Bold.woff2?v=3.15") format("woff2"),
url("../fonts/inter/Inter-Bold.woff?v=3.15") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 700;
src: url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff') format('woff'), /* Modern Browsers */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/googlewebfonts/inter-v3-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.svg#Inter') format('svg'); /* Legacy iOS */
font-display: swap;
src: url("../fonts/inter/Inter-BoldItalic.woff2?v=3.15") format("woff2"),
url("../fonts/inter/Inter-BoldItalic.woff?v=3.15") format("woff");
}

// font families
Expand Down
47 changes: 29 additions & 18 deletions css/style.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions css/style.min.css

Large diffs are not rendered by default.

Binary file not shown.
Loading

0 comments on commit 95f7568

Please sign in to comment.