DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Qt text letters misalignment when using Native font renderer type

Open 2gibbert opened this issue 2 months ago • 3 comments

Compositor

Niri

Distribution

NixOS

If Other, please specify

No response

Select your Installation Method

Source

Was this your original Installation method?

Yes

If no, specify

No response

dms doctor -vC

Click to expand

DMS Doctor Report

System

  • [ok] Operating System: NixOS 26.05 (Yarara)
    • Supported for runtime (install via NixOS module or Flake)
  • [ok] Architecture: amd64
  • [ok] Display Server: Wayland
    • WAYLAND_DISPLAY=wayland-1

Versions

  • [ok] DMS CLI: dms 1.7-beta+date=2026-09-21_567c14f
    • /nix/store/73p3rdpkm1445qw0k12lqypp6fkwrpcj-dms-shell-1.7-beta+date=2026-09-21_567c14f/bin/.dms-wrapped
  • [ok] Quickshell: Quickshell 0.3.0 (revision tag-v0.3.0, distributed by Nixpkgs)
    • /run/current-system/sw/bin/qs
  • [ok] DMS Shell: 1.7-beta+date=2026-09-21_567c14f
    • /nix/store/73p3rdpkm1445qw0k12lqypp6fkwrpcj-dms-shell-1.7-beta+date=2026-09-21_567c14f/share/quickshell/dms

Installation

  • [ok] DMS Configuration: Found
    • /nix/store/73p3rdpkm1445qw0k12lqypp6fkwrpcj-dms-shell-1.7-beta+date=2026-09-21_567c14f/share/quickshell/dms
  • [ok] shell.qml: Present
    • /nix/store/73p3rdpkm1445qw0k12lqypp6fkwrpcj-dms-shell-1.7-beta+date=2026-09-21_567c14f/share/quickshell/dms/shell.qml
  • [info] Install Type: Nix store
    • /nix/store/73p3rdpkm1445qw0k12lqypp6fkwrpcj-dms-shell-1.7-beta+date=2026-09-21_567c14f/share/quickshell/dms

Compositor

  • [ok] niri: 26.04
    • /run/current-system/sw/bin/niri
  • [info] Active: niri
  • [ok] Background Blur: Supported
    • Compositor supports ext-background-effect-v1

Quickshell Features

  • [ok] Polkit: Available
    • Authentication prompts
  • [ok] IdleMonitor: Available
    • Idle detection
  • [ok] IdleInhibitor: Available
    • Prevent idle/sleep
  • [ok] ShortcutInhibitor: Available
    • Allow shortcut management (niri, Aqueous)
  • [ok] BackgroundBlur: Available
    • Background blur API support in Quickshell

Optional Features

  • [ok] accountsservice: Available
    • User accounts
  • [ok] power-profiles-daemon: Available
    • Power profile management
  • [ok] logind: Available
    • Session management
  • [warn] cups-pk-helper: Not available (install cups-pk-helper)
    • Printer management
  • [info] I2C/DDC: No monitors detected
    • External monitor brightness control
  • [ok] qt6-imageformats: Installed (4 formats)
    • Formats: WebP, TIFF, JP2, ICNS (/nix/store/5mznzh9g659g93q2yq6jad0m70kfp0lp-qtimageformats-6.11.2/lib/qt-6/plugins/imageformats)
  • [ok] kimageformats: Installed (4 formats)
    • Formats: AVIF, HEIF, JXL, EXR (/nix/store/vwpv2gdxh9z95sw6yj1j3ix7jgdr6yzj-kimageformats-6.26.0/lib/qt-6/plugins/imageformats)
  • [ok] Terminal: foot
  • [ok] Network: NetworkManager
    • NetworkManager present. Using NM API.
  • [ok] matugen: Installed
    • Dynamic theming
  • [ok] cava: Installed
    • Audio visualizer
  • [ok] khal: Installed
    • Calendar events
  • [info] danksearch: Not installed
    • File search
  • [info] dankcalendar: Not installed
    • Calendar app
  • [info] fprintd: Not installed
    • Fingerprint auth
  • [ok] adw-gtk3: Installed
    • GTK3 dynamic theming (system copy, applied on next theme apply)

Config Files

  • [warn] settings.json: Present (read-only)
    • /home/gibbert/.config/DankMaterialShell/settings.json
  • [info] clsettings.json: Not yet created
    • /home/gibbert/.config/DankMaterialShell/clsettings.json
  • [warn] plugin_settings.json: Present (read-only)
    • /home/gibbert/.config/DankMaterialShell/plugin_settings.json
  • [ok] session.json: Present
    • /home/gibbert/.local/state/DankMaterialShell/session.json
  • [ok] dms-colors.json: Present
    • /home/gibbert/.cache/DankMaterialShell/dms-colors.json

Services

  • [ok] dms.service: enabled, active
  • [ok] greetd: enabled

Environment

  • [info] QT_QPA_PLATFORMTHEME: qtengine
  • [info] QT_QPA_PLATFORMTHEME_QT6: Not set
  • [info] QS_ICON_THEME: Not set
  • [info] XDG_MENU_PREFIX: Not set
  • [info] qtengine plugin: Cannot verify (no qmake/qtpaths)
    • Install a Qt development package to let dms doctor check the plugin against the path Qt actually searches.

Fonts

  • [ok] Normal Font: Google Sans Flex
    • /nix/store/73p3rdpkm1445qw0k12lqypp6fkwrpcj-dms-shell-1.7-beta+date=2026-09-21_567c14f/share/quickshell/dms/DankCommon/assets/fonts/google-sans-flex/GoogleSansFlex.ttf
  • [ok] Monospace Font: Fira Code
    • /nix/store/73p3rdpkm1445qw0k12lqypp6fkwrpcj-dms-shell-1.7-beta+date=2026-09-21_567c14f/share/quickshell/dms/DankCommon/assets/fonts/nerd-fonts/FiraCodeNerdFont-Regular.ttf
  • [ok] Display Font: DM Serif Display
    • /nix/store/73p3rdpkm1445qw0k12lqypp6fkwrpcj-dms-shell-1.7-beta+date=2026-09-21_567c14f/share/quickshell/dms/DankCommon/assets/fonts/dm-serif-display/DMSerifDisplay-Regular.ttf

Summary: 0 error(s), 3 warning(s), 33 ok

Description

I'm using a 1080p display at 1.25x scaling, the issue is not visible at 1x scaling.

When using the "Native" option for font renderer, and using fractional scaling, letters in text are often misaligned vertically.

This bug report thread might be relevant (also includes screenshots): https://bugs.kde.org/show_bug.cgi?id=479891

From what I've read, this seems to be a Qt issue? People have suggested setting QT_SCALE_FACTOR_ROUNDING_POLICY to anything but the default PassThrough, which can be Round, Ceil, Floor, or RoundPreferFloor. I tried Round, and it does make the issue go away for me on DMS.

It sounds like this has been fixed around Qt framework 6.8 - 6.9?

Expected Behavior

Text should be rendered normally without visual glitches.

Steps to Reproduce

  1. Use fractional display scaling
  2. Choose "Native" option for font renderer (Fonts & motion -> Advanced -> Renderer)

Error Messages/Logs

No response

Screenshots/Recordings

Image Image Image

2gibbert avatar Sep 21 '26 05:09 2gibbert

You might do better if you ensure your fractional scale scales to whole numbers, e.g. if 1.25 results ot 2434.51 x 1524.93 then choose the one that results in whole numbers (DMS settings was changed to only show those, outside of the custom option)

It's this one https://bugreports.qt.io/browse/QTBUG-126577

And the KDE workaround/fix seems to be to use QT rendering instead of Native rendering when theres fractional scaling involved, but I'm not sure if we should do that too or not.

bbedward avatar Sep 21 '26 21:09 bbedward

Using whole number fractional scaling seems to fix it for me, thank you

2gibbert avatar Sep 22 '26 00:09 2gibbert

Closing: an upstream Qt bug (QTBUG-126577) with the native renderer under fractional scaling; whole-number scaling avoids it, as confirmed in the comments.

bbedward avatar Oct 28 '26 23:10 bbedward