Where do I place custom fonts in Laravel 5?

前端 未结 4 587
野的像风
野的像风 2020-12-16 10:27

Complete beginner to Laravel 5 and trying to import custom fonts using this code in my header:


In CSS includes:

@font-face {
    font-family: OptimusPrinceps;
    src: url('/fonts/OptimusPrinceps.tff');
}

In the second example, you don't need any Laravel magic, really. Just reference the path absolutely so that it points to the correct directory.

Worth noting that this works with Bootstrap and SCSS. I usually put fonts in /public/static/fonts/.

提交回复
热议问题