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

Auto generated qmlproject file doesn't respect fonts directory for MCU projects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • QDS 4.3.2
    • MCU support
    • None
    • All

      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

      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. 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. 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"
          } 

       

       

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

            sikrovel Sivert Krøvel
            takujikawata Takuji Kawata
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes