JoaoHamerski's avatar

How to allow url processing only to fonts?

I don't want to process URLs of images, only fonts, there is a way to do that?

0 likes
3 replies
bobbybouwmann's avatar

Not really sure what you mean with process fonts? Do you mean that you want to include fonts?

bobbybouwmann's avatar

As far as I know you can simply load in the fonts using the url method as well

@font-face {
  font-family: 'Darkenstone';
  src: url('./Darkenstone.eot');
  src: url('./Darkenstone.eot?#iefix') format('embedded-opentype'),
       url('./Darkenstone.woff2') format('woff2'),
       url('./Darkenstone.woff') format('woff'),
       url('./Darkenstone.ttf') format('truetype'),
       url('./Darkenstone.svg#Darkenstone') format('svg');
  font-weight: normal;
  font-style: normal;
}

That should work out of the box as far as I know

1 like

Please or to participate in this conversation.