Skip to content

TerminalPainter: Fix font width on Qt 6

Kai Uwe Broulik requested to merge work/kbroulik/fix-qt6-font-rendering into master

There is no QFont::ForceIntegerMetrics anymore. The only way to achieve the desired effect is to disable "design metrics".


Spent way to long in QFontEngine and friends, found this was the least invasive change. Not sure about the other drawText calls, one is for the cursor, one is for some text drawing setting, couldn’t figure out how to test that one.

Anyway:

Top is before, bottom is after

Screenshot_20231030_173923

Merge request reports