L lashedup Member Oct 11, 2024 #1 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
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
Mr Lucky Well-known member Oct 11, 2024 #2 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 Upvote 1 Downvote
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
L lashedup Member Oct 11, 2024 #3 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! Upvote 0 Downvote
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!
K Kirby Well-known member Oct 11, 2024 #4 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. Upvote 0 Downvote
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.
L lashedup Member Oct 11, 2024 #5 Corporate fonts we have to use that are unique to our company. Upvote 0 Downvote