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

Improve move to static fonts to not make it breaking, but as an opt-in #3510

Merged
merged 2 commits into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

### Internal

- Improve move to static fonts to not make it "breaking", but as an opt-in. So if you want your site load the "Poppins" font from local instead from GoogleFont CDN, you must override the `@importGoogleFonts` and set it to false in your project theme:

```less
@importGoogleFonts: false;
```

### Documentation

## 15.13.0 (2022-07-25)
Expand Down
5 changes: 4 additions & 1 deletion theme/themes/pastanaga/globals/site.variables
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
Fonts
--------------------*/

@importGoogleFonts: false;
// Remove if you want to load the font from local instead from Google Fonts CDN
// You most likely will do this in your project theme.
// @importGoogleFonts: false;
@fontName : 'Poppins';
@fontDisplay: swap;

@googleFontSizes : '300,400,500,700,400italic,700italic&display='@fontDisplay;
@toolbarWidth: 80px;
@toolbarWidthMin: 20px;
@fullSizeIcon: 36px;
Expand Down