You are not logged in.

#1 2024-02-19 06:51:24

fasked
Member
Registered: 2015-07-17
Posts: 8

[SOLVED] QtCreator's font rendering is way worse than alacritty's

QtCreator is on the left side, alacritty with nvim is on the right side. Same font, same size, no user fontconfig.
Is there any way I can configure qtcreator to provide sharper font rendering?

https://i.imgur.com/PRu9ann.png

xrandr -q

Screen 0: minimum 8 x 8, current 5120 x 1440, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 2560x1440+2560+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   1920x1200     59.88
   1920x1080     60.00    59.94    50.00
   1680x1050     59.95
   1440x900      59.89
   1280x1024     75.02    60.02
   1280x720      60.00    59.94    50.00
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32
   720x576       50.00
   720x480       59.94
   640x480       75.00    72.81    59.94    59.93
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   2560x1440     59.95 + 143.97*  120.00
   1920x1080    143.98   119.93    60.00    59.94    50.00
   1680x1050    119.99    59.95
   1440x900     119.85    59.89
   1440x576      50.00
   1440x480      59.94
   1280x1024    119.96    75.02
   1280x720     119.88    59.94    50.00
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   720x576       50.00
   720x480       59.94
   640x480       75.00    72.81    59.94    59.93
DP-5 disconnected (normal left inverted right x axis y axis)
USB-C-0 disconnected (normal left inverted right x axis y axis)

/etc/X11/xorg.conf.d/**-.conf

Section "Device"
	Identifier 	"NVIDIA"
	Driver		"nvidia"
EndSection

Section "Monitor"
	Identifier 	"DP-4"
	Option 		"DPMS" "true"
EndSection

Section "Monitor"
	Identifier 	"HDMI-0"
	Option 		"DPMS" "true"
	Option		"Primary" "true"
EndSection

Section "ServerFlags"
	Option "OffTime" "10"
	Option "BlankTime" "5"
	Option "StandbyTime" "10"
	Option "SuspendTime" "10"
EndSection

Section "Screen"
	Identifier	"Screen0"
	Option		"metamodes" "DP-4: 2560x1440_144 +0+0, HDMI-0: 2560x1440_60 +2560+0"
EndSection

Last edited by fasked (2024-02-21 16:02:27)

Offline

#2 2024-02-19 08:33:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,030

Re: [SOLVED] QtCreator's font rendering is way worse than alacritty's

Please replace the oversized image w/ a link.

Looks like hinting to me, https://wiki.archlinux.org/title/Font_c … on#Hinting & https://wiki.archlinux.org/title/Font_c … ig_support
Is QtCreator a flatpak or something like that?

The font in the row number column is btw. not the same.

Offline

#3 2024-02-20 07:07:43

fasked
Member
Registered: 2015-07-17
Posts: 8

Re: [SOLVED] QtCreator's font rendering is way worse than alacritty's

seth wrote:

Please replace the oversized image w/ a link.

Done, thank you!

Is QtCreator a flatpak or something like that?

It's native package installed from https://archlinux.org/packages/extra/x86_64/qtcreator/

Thank you, I will try to change settings in ~/.Xresources and fonts.conf.

Last edited by fasked (2024-02-20 07:30:14)

Offline

#4 2024-02-20 07:32:05

fasked
Member
Registered: 2015-07-17
Posts: 8

Re: [SOLVED] QtCreator's font rendering is way worse than alacritty's

Looks like the only option in fonts.conf that affects qtcreator is antialias, hinstyle doesn't change anything.

Offline

#5 2024-02-20 14:10:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,030

Re: [SOLVED] QtCreator's font rendering is way worse than alacritty's

https://unix.stackexchange.com/question … plications
108 DPI isn't particularly "high", but hey…

Offline

#6 2024-02-21 16:01:48

fasked
Member
Registered: 2015-07-17
Posts: 8

Re: [SOLVED] QtCreator's font rendering is way worse than alacritty's

seth wrote:

Looks like hinting to me

Oh, it looks like I have to set hintfull and enable autohinter. The font is good now.
Thanks for your help.

Offline

Board footer

Powered by FluxBB