Apply a Font from Google Fonts?

It's possible to add a font directly from Google Fonts?

For example this font: https://fonts.google.com/specimen/Sunflower

It says that to add the font to a webpage, I need to use:

<link href="https://fonts.googleapis.com/css?family=Sunflower:300" rel="stylesheet">

or

<style>
@import url('https://fonts.googleapis.com/css?family=Sunflower:300');
</style>

And then apply the font to a div (or anything else) using:

font-family: 'Sunflower', sans-serif;

But I can't do that.
Is there a way?

Comments

  • @font-face is what you're looking for. Some are simple, and some are a nightmare. Good luck.
Sign In or Register to comment.