Embed a web-font in a blog post via body tag?

175 Views Asked by At

I'd like to use a web-font in a blog post without having to change the entire website's code to incorporate it. Is there a way of adding a piece of @font-face code into the body section of a page without using external css or head code?

2

There are 2 best solutions below

8
On BEST ANSWER

You can place <style type="text/css"></style> within the body and add the required CSS @font-face properties between these tags.

0
On

You probably can.

Just include the web font and then inline some CSS that overrides the defaults.

Use !important to force some changes:

The !important exception