- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Following Chris’s awesome tutorial I’m wondering which of these properties ( @font-face, @import) I should use.
Thanks for your answers.
You have to use @font-face regardless if you have a separate stylesheet that you want to import.
What do you think of the disadvantages of @import?
If the file is small enough to not effect the load time significantly of your site then I don’t see the disadvantage.
So with @import I load the entire file even though I’d use one icon font ?
With @font-face I can select the icon with font squirrel and gain performance ??
@import: imports files
@import url(‘typography.css’);
@font-face: loads the font which you can call by using the `font` or `font-family` property.
Alternatively you can just paste the @font-face code into your main stylesheet.
Thanks Chrisburton