I'm using metronic
theme for building my web application. on each page this code is the first in the <head>
tag:
<script>
WebFont.load({
google: {"families":["Poppins:300,400,500,600,700","Roboto:300,400,500,600,700"]},
active: function() {
sessionStorage.fonts = true;
}
});
</script>
I need to get those fonts from google so that I can use them locally OFFLINE. How Can I get them? What code Should I write instead. Thanks.
fist of al download the font and go to
font generator
Like : https://transfonter.org/ than you can download this file and placing according to the fileI had also the same problem but I solved it by the following steps:
1) As you may know, you can import google fonts by using googleapi, so first of all I maked appropriate url such as:
and
These urls should return a css file that contains source of fonts.
2) Save these files to the appropriate path.
3) You need to download source url in 'src' of 'font-face', one by one, and then put it to the appropriate path. For example on the following snipped css:
You should download the font from the address:
4) Finally correct the 'url' of 'src' in the css file, according to the local font files.
Hope that it helps.