XF 2.2 WOFF Fonts

lashedup

Member
Licensed customer
If I want to change the fonts to use WOFF fonts that are uploaded to my server, is there specific code to embed in a template so they can be used?

Thanks so much for help in advance!

J
 
In extra.less template

Code:
@font-face {
  font-family: myFont;
src: url(https:example.com/fonts/myFont.woff);
}

You can then add it to style properties > typography
 
Awesome. Appreciate the quick response. If I have more than one WOFF file for wide version, bold, etc., etc. is the syntax a little different?

Thanks again!
 
While the answer you got is correct, I'd really like to understand why you want to do that?

XenForo has put a lot of effort into getting rid of fonts for the icons to significantly improve performance.

By using custom fonts via WOFF files (hopefully at least WOFF2) you would effectively nullify those efforts.
 
Back
Top Bottom