Fill out new to Laravel 5 and try importing custom fonts using this code in my header:
<style> @font-face { font-family: 'Conv_OptimusPrinceps'; src: url('fonts/OptimusPrinceps.eot'); src: local('☺'), url('fonts/OptimusPrinceps.woff') format('woff'), url('fonts/OptimusPrinceps.ttf') format('truetype'), url('fonts/OptimusPrinceps.svg') format('svg'); font-weight: normal; font-style: normal; }
and calling it in my .scss variables. My fonts are currently stored in my public directory:
public/fonts/OptimusPrinceps.woff public/fonts/OptimusPrinceps.tff etc.
For some reason this warning appears in my dev tools
Failed to decode downloaded font: http://localhost:3000/fonts/OptimusPrinceps.tff OTS parsing error: invalid version tag
And my font is not loading correctly.
css php fonts laravel
user3818418
source share