Reputation:
Maybe this link Can help you
https://xenforo.com/community/threads/install-fonts-in-xenforo.23449/
Just add group id in extra.less
Reputation:
it doesn't help
I dont seem to have extra.css
I found extra.less
and tried pasting those codes but nothing changed
@font-face {
font-family: 'fontx';
src: url(/styles/fonts/fontx.ttf);
}
Reputation:
I managed to solve it :
1st you upload and set the ttf file of the custom font using the terminal:
on pc terminal
scp fontx.ttf user@ip:/var/www/html/domain/data
on server terminal after ssh login
cd /var/www/html/domain/data
sudo cp fontx.ttf /var/www/html/domain/styles/fonts
2nd I add the font to the extra.less :
PHP:@font-face { font-family: 'fontx'; src: url(/styles/fonts/fontx.ttf); }
and finally I use the font in the user group Username CSS :
font-family: fontx;