Picture of Jörg Stachowski
Help with adding fonts to custom theme.
by Jörg Stachowski - Friday, 29 July 2016, 7:54 AM
 

Good morning everyone!

I'm new to adapt, but I managed to install framework and authoring tool and now I'm trying to build the first course for our company. Next  I added custom theme based on the vanilla theme to the course.

Now I try to add our company font to this theme. I searched forums and wiki, but I still have no idea, how I have to edit 'fonts.less' to get it working, because I'm not familiar with LESS. Actually I only have added the 'font_xy.ttf' to the fonts directory.

Is there someone who could give a little advice to me?

TIA

Jörg

Picture of Matt Leathes
Re: Help with adding fonts to custom theme.
by Matt Leathes - Wednesday, 3 August 2016, 3:34 PM
 

Hi Jörg

I'm by no means a CSS/LESS expert but I think you just need to create an @font-face declaration - there's what looks like a good tutorial on how to do this here.

I recommend you test locally first in the framework and get it all working there before attempting to upload your modifying theme to the authoring tool.