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

wasm: using otf fonts does not work

XMLWordPrintable

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

       

      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);

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes