@font-face {
font-family: "HelveticaNeueLTStd-Lt";
src: url('/css/fonts/HelveticaNeueLTStd-Lt.otf') format('opentype');
}
那是我的指南针代码的输出:
@include font-face('HelveticaNeueLTStd-Lt', font-files('HelveticaNeueLTStd-Lt.otf'));
我似乎无法将输出网址设为“Helvetica......otf”或“fonts/Helvetica......otf”。
我的目录资产如下:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
fonts_dir = "fonts"
我试过取消 fonts_dir 并将其更改为 "" 没有运气