【发布时间】:2017-01-18 11:42:27
【问题描述】:
我正在尝试在我的应用程序中使用自定义字体。我有 2 种字体,一种是来自 flaticons 的图标字体,另一种是文本字体“Humanst webfont”,我已经下载了它们并遵循了很多关于如何使它们工作的教程,这是我到目前为止所得到的:
错误: Erro thrown of broken import
我的项目文件夹:THE SRC AND WWW FOLDERS
我的 app.scss 中有这个:
@import "../assets/fonts/humanst-webfont.css";
@import "../assets/fonts/flaticon.css";
这是我的human-webfotn.css:
@font-face {
font-family: 'Humanst';
src: url('humanst-webfont.woff2') format('woff2'),
url('humanst-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
我已尝试导入 .css、.scss 并仅允许 humant-webfont。也将我的 appscripts 更新为 1.0.0。 在离子服务中它工作正常,但是当我尝试构建它时它会中断。有人知道它是什么吗?
提前致谢:)
【问题讨论】:
标签: android css ionic-framework sass ionic2