Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
QDS 4.3.2
-
None
Description
Summary of the issue
Live Preview / Run MCU projects in QDS doesn't respect cusom fonts embeded in the project, so the executed QML render custom fonts with default fonts if the specific font is not installed in the system.
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.
- (Use fonts not installed in the system) 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
- To workaround
QDS-11603Auto generated qmlproject file doesn't respect fonts directory for MCU projects - Qt Bug Tracker, add following to the qmlproject file.
FontFiles {
directory: "fonts"
}
- Press [Run] or [Live Preview] to preview the result
Expected result
- The QML render text with custom fonts.
Actual result
- The text is rendered by default font. It's rendered as expected when the project is compiled and executed through QtCreator, so this is the problem of the qml emulator in QDS.
Attachments
Issue Links
- mentioned in
-
Page Loading...