-
-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(site): offline lato 2.0, systemfonts, no googleimport by default
This PR bundles the recent Lato 2.0 Font. It uses the same styles as the previous googleFonts Import does. This fixes possible GDPR issues as the default theme now disables googlefont import. I implemented a new variable @fonts which allows for a totally free description of font faces to be imported if needed. Each declared property will be used, so one can customize them as needed by that single variable. Disabling the whole import can be done via @importFont: false or setting @font: {} or setting @fontName: '' just as one likes. The new variables for unicode or font properties are done to simplify the default import and of course if one just wants to adjust them without redeclaring the whole @font variable mixin. I also added @supportIE which allows to disable the woff-font import, as all other supported browsers support woff2 already. This new variable and also the icon font-face will be adjusted accordingly in a separate PR... in case you might ask/wonder 😉 The default theme uses Lato-Latin 2.0 now which is smaller in size but includes the most important glyphs for European Latin-based languages which were missing in Lato v1 (via googlefonts) like in "Řeřicha" It also uses Lato with Greek+Cyrillic+Extended 2.0 via unicode-range property which makes sure the font is only loaded when related characters are used inside the page. If no character matches at all, the system fonts will be used as fallback. I created the unicode ranges by analyzing the fonts character ranges using fontforge/fontforge I also added an optional theme to adjust the font via a change in theme.config: systemfont (which completely disables any font import and uses the platform system fonts only instead AND adjusts the bold setting so the overall visual appearance is very similar) See comments below for more info. The used Lato fonts are available free of charge under the SIL Open Font License from http://www.latofonts.com
- Loading branch information
Showing
22 changed files
with
132 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
@fontSize : 13px; | ||
@fontName : 'Arial'; | ||
@importGoogleFonts : false; | ||
@importFonts: false; | ||
|
||
@h1: 2.25em; | ||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
@fontSize : 13px; | ||
@fontName : 'Arial'; | ||
@importGoogleFonts : false; | ||
@importFonts: false; | ||
|
||
@h1: 2.25em; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/******************************* | ||
Overrides | ||
*******************************/ | ||
|
||
b, | ||
strong { | ||
font-weight: 600; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/******************************* | ||
User Global Variables | ||
*******************************/ | ||
|
||
@fontName : ''; | ||
@headerFont : @fallbackFonts; | ||
@pageFont : @fallbackFonts; | ||
@importGoogleFonts : false; | ||
@importFonts : false; | ||
@bold : 600; |