Custom font in a moodle theme

From Feel Do Think
Jump to: navigation, search

updates to the "theme" plug-in remove the changes I made to the font on my site

My chosen theme "Trema" uses fonts that don't have Cyrillic letters in them. This means that the parts written in Russian just fall back to whatever is the default in the user's browser. Often making for an unhappy juxtaposition with the Latin font they chose - "Lato".

To correct this:

  1. upload the chosen font (as a zip file) and put the files in tema/fonts... my choice is the sans serif font Montserrat
  2. change the font family in the file scss/trema/main.scss
  3. change all the instances of "lato" replacing them with "montserrat" in the file theme/trema/scss/fonts.scss

This is part of series called Practical notes on Moodle