-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
自定义主题字体问题 #1738
Comments
Hello @sgmcumt, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you! |
报错已经很明显了,你的相对路径写的有问题 |
@sgmcumt 按照你放置font的路径,@icon-url应该写什么呢? 请教下 |
在theme.less中写入@icon-url: "/assets/fonts/iconfont"; |
软件版本:
ant design of angular :1.0
angular: 6.0.3
问题描述:
在使用自定义主题时,根据官方文档,在初始化项目时使用 ng add ng-zorro-antd --theme 配置了自定义主题的相关文件,最新的 iconfont下载放在了项目中的src/assets/fonts文件夹中,下载的压缩包名称为iconfont-3.x.zip,解压后的文件有:
在 ssrc/theme.less 文件中修改为:
项目启动后:
错误提示
The text was updated successfully, but these errors were encountered: