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

How to force native font rendering in a QML application?

    XMLWordPrintable

Details

    • Task
    • Resolution: Invalid
    • Not Evaluated
    • None
    • None
    • None

    Description

      Hi,

      This commit https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=460925b3f1dd9d2301b9c69558bd68843cd5f978 changed QT_QUICK_DEFAULT_TEXT_RENDER_TYPE to match https://doc.qt.io/qt-5/qquickwindow.html#TextRenderType-enum

      The commit leads me to believe that i need to rebuild libQt5Quick to get font rendering using the OS native renderer.

      I haven't tried that but i assume that works.

      What i'm looking for is a way to set the text rendering to native without the need to rebuild Qt or a Qt component. How do i do that?

      I am aware of the option to do this on an individual Text{} component. I don't want to go that route as that's too easy to forget. Also, not all components that have text have the ability to change the individual text properties. So this is not an option.

      Cheers,
      Mark

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            markg85 Mark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes