Skip to content

Commit

Permalink
Force webfonts for Lato as local version can be sized differently
Browse files Browse the repository at this point in the history
  • Loading branch information
rogatty committed Oct 11, 2021
1 parent de45de4 commit a4e0820
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions lib/styles/settings/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
font-family: 'Lato';
font-style: normal;
font-weight: 300;
src: local('Lato Light'), local('Lato-Light'),
url(~design-system/lib/fonts/lato/lato-ext-300.woff2) format('woff2');
src: url(~design-system/lib/fonts/lato/lato-ext-300.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113,
U+2C60-2C7F, U+A720-A7FF;
}
Expand All @@ -14,8 +13,7 @@
font-family: 'Lato';
font-style: normal;
font-weight: 300;
src: local('Lato Light'), local('Lato-Light'),
url(~design-system/lib/fonts/lato/lato-latin-300.woff2) format('woff2');
src: url(~design-system/lib/fonts/lato/lato-latin-300.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
Expand All @@ -25,8 +23,7 @@
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'),
url(~design-system/lib/fonts/lato/lato-ext.woff2) format('woff2');
src: url(~design-system/lib/fonts/lato/lato-ext.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113,
U+2C60-2C7F, U+A720-A7FF;
}
Expand All @@ -36,8 +33,7 @@
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'),
url(~design-system/lib/fonts/lato/lato-latin.woff2) format('woff2');
src: url(~design-system/lib/fonts/lato/lato-latin.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
Expand All @@ -47,8 +43,7 @@
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: local('Lato Bold'), local('Lato-Bold'),
url(~design-system/lib/fonts/lato/lato-ext-700.woff2) format('woff2');
src: url(~design-system/lib/fonts/lato/lato-ext-700.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113,
U+2C60-2C7F, U+A720-A7FF;
}
Expand All @@ -58,8 +53,7 @@
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: local('Lato Bold'), local('Lato-Bold'),
url(~design-system/lib/fonts/lato/lato-latin-700.woff2) format('woff2');
src: url(~design-system/lib/fonts/lato/lato-latin-700.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
Expand Down

0 comments on commit a4e0820

Please # to comment.