Support for local installed fonts #9
Closed
treeandcoffee
started this conversation in
Ideas
Replies: 2 comments 1 reply
|
I switched all the themes to use Bunny Fonts (instead of Google Fonts) in a recent release. Bunny Fonts is GDPR friendly. The only reason you would want to load fonts locally would be for faster page loading, but the gain is very minimal. All the SynaptikCMS themes already score 99-100 on Google PageSpeed because they are well optimized. However you can easily self-host fonts in any theme:
<link href="https://fonts.bunny.net/css?family=inter:300,400,500,600,700&display=swap" rel="stylesheet">
@import url('https://fonts.bunny.net/css2?family=...');
@font-face {
font-family: 'Inter';
src: url('../fonts/Inter-Variable.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
} |
1 reply
|
It works fine. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I would like to have an option for local uploaded fonts instead of CDN loaded fonts, due to GDPR.
All reactions