Hello, in my country are not allowed, how can i disable all google fonts on my metronic theme (Latest Version, laravel)?
Thank you riterix
Ohh Hi Faizal,
You are welcome, any time man.
Thank you ;)
Hi Justus,
You can customize and update the includeFonts
function from this class file app/Core/Adapters/Theme.php
based on your requirement.
The default Metronic font is Inter. Maybe you could replace it with this font.
https://rsms.me/inter/
Thanks
How can i See If text ist used in the Programm is a Google Font or not? So the Default metonic Fonts dont used Google Fonts?
Hi Justus,
You can rely on this Post, I used the first option, to disabled google fonts, since it is for Laravel it will fits you well,
I followed it and made my project google fonts off, I customize the post for my Django project, and now I host them locally, even performance are great.
This method is also great for people who may deploy their project for the European market to avoid the GDPR laws.
Hope it helps.
here's the post :
https://european-alternatives.eu/blog/removing-google-fonts-and-self-host-it-locally-in-laravel-projects
Hi Justus Roki,
You can remove below code from this file.
themes/metronic/laravel/resources/views/base/base.blade.php
{{ theme()->includeFonts() }}
how do i know if i use google fonts or not? If need a alternative when i remove then?
There active but i dont if use them
https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2
https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1xlFd2JQEk.woff2
https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2
https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLDz8Z1xlFd2JQEk.woff2
--------------------------
https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700