我正在寻找使用 Assetic 在 Symfony 中包含来自 CSS 文件的字体。问题是浏览器无法加载这些字体。
@font-face {
font-family: 'Corbert'; /*a name to be used later*/
src: url('fonts/Corbert-Regular.otf') format('opentype'),
url('fonts/Corbert-Regular.woff') format('woff'),
url('fonts/Corbert-Regular.ttf') format('truetype');
}
Run Code Online (Sandbox Code Playgroud)
我的路径结构是
...
+-src/
| +-MyCompany/
| +-MyBundle/
| +-Resources/
| +-public/
| +-css/
| +-fonts/
Run Code Online (Sandbox Code Playgroud)
我链接 CSS 文件的路径是


我究竟做错了什么 ?