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

preview_ui.exe 不识别default字体,需要手动移植default_full字体才显示 #877

Open
Tracker647 opened this issue Jun 3, 2024 · 1 comment

Comments

@Tracker647
Copy link

awtk: awtk designer 自带的1.7.0 sdk

复现步骤:
1.awtk designer新建项目
2.编写home_page.xml

<window name="home_page">
  <button name="button" x="516" y="306" w="100" h="36" text="Button"/>
  <button name="button1" x="160" y="306" w="100" h="36" text="Button"/>
  <button name="button2" x="335" y="306" w="100" h="36" text="Button"/>
  <label name="label" x="305" y="231" w="160" h="28" text="Label"/>
</window>

3.打包并运行

python .\scripts\update_res.py all
D:\AWStudio\AWTK\SDK\awtk\bin\preview_ui.exe .\design\default\ui\home_page.xml 800 480

4.预期效果是:
image
但实际效果是:
image

还好手上有正常显示的项目,于是很快就定位到是没加字体的问题,designer默认的项目是只有default字体的,
麻烦这个可以加进FAQ吗,或者文档哪处说明,不然对于许可过期只能用命令行的用户预览会很麻烦。

@ufbycd
Copy link

ufbycd commented Aug 31, 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