jpescador / hugo-future-imperfect

A ported theme with some extras for the Hugo static website engine
MIT License
308 stars 227 forks source link

Change fonts #148

Closed Lo-boom closed 5 years ago

Lo-boom commented 6 years ago

Hi, I have allready checked different possibilities but I find no solution. I have downloaded too fonts and have added them to the static folder. Then I added the follow code in the main.css: @font-face { font-family: 'Handlee'; font-style: normal; font-weight: 400; src: url('../static/fonts/handlee-v6-latin-regular.eot'); / IE9 Compat Modes / src: local('Handlee Regular'), local('Handlee-Regular'), url('../static/fonts/handlee-v6-latin-regular.eot?#iefix') format('embedded-opentype'), / IE6-IE8 / url('../static/fonts/handlee-v6-latin-regular.woff2') format('woff2'), / Super Modern Browsers / url('../static/fonts/handlee-v6-latin-regular.woff') format('woff'), / Modern Browsers / url('../static/fonts/handlee-v6-latin-regular.ttf') format('truetype'), / Safari, Android, iOS / url('../static/fonts/handlee-v6-latin-regular.svg#Handlee') format('svg'); / Legacy iOS / but with or without ".." it doesn't works.

Thank you for your help.

Lo-boom commented 6 years ago

Oh, good, after looking better, I was just an simple order error oO "../fonts/handlee-v6-latin-regular.eot..." and not "'../static/fonts/handlee-v6-latin-regular...". I'm sorry :)