Results 1 to 1 of 1

Thread: Qt5 and Qt6 font render mismatches

  1. #1

    Default Qt5 and Qt6 font render mismatches

    Greetings.
    I am doing migration of app from Qt5.15.2 to Qt6.2.2 (OS: win).
    All going well up to the point when we noticed that text rendering is changed a bit (the text which was looking bold on Qt5 variant, was not looking so on Qt6, was thinner)

    I wrote simple demo app, where i create QLabel and set font size and weight for it.
    Build two apps, one for Qt5 and other for Qt6 and compare side by side.
    The render of Qt6 fonts looks nicer in general, but our problem that we have to update css for all app, and looking to find temporary solution without changing css much, if possible.

    issue1: Here(first image attachment) is a standard font, as u may see Qt6 variant for 12px looks smaller than same variant for Qt5. This is very weird to me, because on other font family i didn't experience such behavior (see Note3 below, where second image with other font-family).
    issue2: font-weight: 600 and 700 looks the same for Qt5, but are different on Qt6 (was it Qt5 bug, which fixed in Qt6)?
    qt5_vs_qt6_standart_font.jpg

    Note3 (same side to side comparison, but with using font Monserrat):
    qt5_vs_qt6_monserrat_font.jpg

    I would be appreciated if someone could explain me some of these issues or advice a quick solution, if possible to got identical font rendering on both Qt5/Qt6 versions.
    many thanks in advance
    Last edited by diverlin; 10th December 2021 at 23:34.

Similar Threads

  1. unable to find font when placed under lib/font dir
    By menkey18 in forum Qt Programming
    Replies: 6
    Last Post: 14th December 2012, 08:45
  2. QGLWidget render or QGraphicsView with GL viewport render
    By QTInfinity in forum Qt Programming
    Replies: 2
    Last Post: 28th November 2011, 12:34
  3. Font Height and width based on font size
    By Ghufran in forum Qt Programming
    Replies: 1
    Last Post: 31st July 2010, 09:02
  4. Change Font of QListWidget to Monospace Font
    By pospiech in forum Qt Programming
    Replies: 3
    Last Post: 25th July 2008, 19:23
  5. font incorrectly show - font break.
    By sgh in forum Qt Programming
    Replies: 9
    Last Post: 30th May 2008, 03:35

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.