Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-11608

Custom font is not respected when MCU project is executed in QDS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • QDS 4.3.2
    • MCU support
    • None
    • All

      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

      1. Setup both QDS and Qt for MCUs for a machine, so fontcompiler would be executed when  [Live Preiew] is executed for MCU projects
      2. Launch QDS and create a new MCU project.
      3. (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.
      4. Add dynamic text in the QML file and apply a font imported for the font.family  property
      5. To workaround QDS-11603 Auto generated qmlproject file doesn't respect fonts directory for MCU projects - Qt Bug Tracker, add following to the qmlproject file.
          FontFiles {
              directory: "fonts"
          } 
      1. 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.

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            algerman Aleksei German
            takujikawata Takuji Kawata
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes