Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
QDS 4.3.2
-
None
Description
Summary of the issue
MCU projects in QDS doesn't respect fonts directory, so developer need to custom the project file by themselves. It would be very hard for general developer to come up with the resolusion.
Reproducible steps
- Setup both QDS and Qt for MCUs for a machine, so fontcompiler would be executed when [Live Preiew] is executed for MCU projects
- Launch QDS and create a new MCU project.
- Drag font files (TryeType/CCC compressed fonts/fontmaps) and drop them under Fonts section of Assets view in QDS, so they are imported as font files. They will be copied under fonts directory of the project.
- Add dynamic text in the QML file and apply a font imported for the font.family property
- Press [Run] or [Live Preview] to preview the result
Expected result
- The QML is executed without any problem
Actual result
- The execution fails with "unknown font family used" error
The insight and the workaround
- I can see the auto generated qmlproject file for Qt for MCUs doesn't respect font directory. By adding following in the project file, the issue is solved. Though the resolution is rather simple, it would be harder for developer to come to the resolution at the first time, so tool should respect this automatically.
FontFiles {
directory: "fonts"
}