Skip to content
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

右侧样式面板设置字体不生效 #609

Closed
Zzzzzhoukekkk opened this issue May 27, 2024 · 3 comments
Closed

右侧样式面板设置字体不生效 #609

Zzzzzhoukekkk opened this issue May 27, 2024 · 3 comments

Comments

@Zzzzzhoukekkk
Copy link

Zzzzzhoukekkk commented May 27, 2024

自定义右侧样式面板内容
设置字体后不生效
{ type: 'data-source-field-select', name: 'fontFamily', text: '字体', checkStrictly: false, dataSourceFieldType: ['string'], fieldConfig: { type: 'select', options: [ { text: 'FZHuoLTJW_Da', value: 'FZHuoLTJW_Da' }, ], }, },

@jia000
Copy link
Collaborator

jia000 commented May 27, 2024

FZHuoLTJW_Da这个字体不是系统自带的吧?自定义字体需要在runtime中使用@font-face引入字体文件

@Zzzzzhoukekkk
Copy link
Author

支持@font-face引入字体链接嘛
需要在runtime的哪里引入呀
在playground和runtime都引入了但只有部分生效

@Zzzzzhoukekkk
Copy link
Author

生效喽,嘿嘿,感谢感谢

@jia000 jia000 closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants