使用字体()时指南针错误"Could not determine font type"



我正在尝试使用指南针的字体功能导入字体。我给出以下指示:

@include font-face("Avenir", font-files("Avenir.ttc"));

并得到以下错误:

error assets/styles/sass/styles.scss (Line 1 of assets/styles/sass/_typography.scss: Could not determine font type for "Avenir.ttc")

我没有在我的config.rb文件中指定fonts_dir,但我的字体文件放在<css_styles>/fonts目录中,根据上面链接的文档,该目录是默认位置。

有谁知道这里可能出了什么问题?

Compass 无法识别 ttc 扩展名,您应该使用 CSS 3 字体规范中定义的扩展之一:http://www.w3.org/TR/css3-fonts/#src-desc

相关内容

最新更新