3 Replies
the url is not the font, but a stylesheet. (just open that url in your browser and you'll see)
you can import that stylesheet in your <head> and then just reference the font name. (or copy it into your css)
But please consider serving the font yourself (download it into your project) instead of loading it from google. (cookies, tracking, etc)
There was a lawsuit recently in the UK bc a site linked a google font which created a privacy issue that was illegal. Whenever possible host your own fonts and make sure they are optimized. Font squirrel is a helpful tool for optimizing it simply and easily
Sorry didn’t mean to reply to your comment !
I wonder is it okay to download the font from cdn website and then host it by yourself
Or using cdn of the link could make you help to escape from legal troubles or not? Since the service hosting it publicly so.
For example using Helvetica for your website and using cdn way aka importing it from internet