Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113451

wasm: using otf fonts does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 6.5.0
    • GUI: Font handling
    • None
    • WebAssembly

    Description

       

      see QTBUG-107139

      Loading of otf font with addApplicationFont succeeds with result of 0, but actually using it does not work.

       

      example code:

          int id = QFontDatabase::addApplicationFont(":/Fonts/NotoSansTC-Regular.otf");
          qWarning() << "RESULT" << id;
          QString family = QFontDatabase::applicationFontFamilies(id).at(0);
          QFont NoToSans(family);

          ui->lineEdit->setFont(NoToSans);

       

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              lpotter Lorn Potter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes