How to solve gambas code editor FONT BLURRINESS on a 4K display with 200 % monitor scale ?

Questions and info about the Gambas IDE itself and not what you are making with it.
(not bug reports)
Post Reply
JumpyVB
Posts: 75
Joined: Friday 11th September 2020 9:09am

How to solve gambas code editor FONT BLURRINESS on a 4K display with 200 % monitor scale ?

Post by JumpyVB »

I recently upgraded to a 4K display. I am using Linux Mint and have the 'Monitor scale' set to 200 %. I have a problem with the gambas code editor font being rendered blurry. The console portion and menus render fine and I can work with blurry icons, but the blurriness on code editor starts to strain my eyes. Any help would be appreciated.
BlurryFont.png
BlurryFont.png (383.88 KiB) Viewed 4970 times
User avatar
cogier
Site Admin
Posts: 1127
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: How to solve gambas code editor FONT BLURRINESS on a 4K display with 200 % monitor scale ?

Post by cogier »

Looks like your in front of the rest of us with a 4K monitor!
Looking at the picture I suggest you try a different font. I would change them all to Ubuntu to start with.
You could also look at the Linux Mint forums to see if anybody else has similar issues with 4K.
JumpyVB
Posts: 75
Joined: Friday 11th September 2020 9:09am

Re: How to solve gambas code editor FONT BLURRINESS on a 4K display with 200 % monitor scale ?

Post by JumpyVB »

cogier wrote: Sunday 24th September 2023 8:03amLooking at the picture I suggest you try a different font. I would change them all to Ubuntu to start with.
I already tried both ubuntu and gambas fonts.

Unscii was the third font - A higly pixelated crisp font to better showcase the issue.

On my Linux Mint installation the fonts look crisp elsewhere outside the gambas code editor.
JumpyVB
Posts: 75
Joined: Friday 11th September 2020 9:09am

Re: How to solve gambas code editor FONT BLURRINESS on a 4K display with 200 % monitor scale ?

Post by JumpyVB »

I seem to have no blurriness of the code editor in Solus (a GNU/Linux distribution) where I only have Qt5 and no Gtk (I was unable to find and install all the depencies required for Gtk 2 or 3). In Linux Mint the Gambas IDE seems to use Gtk3 by default, so I wanted to try Gambas with Qt in Linux Mint as well. But I get errors if I launch Gambas using the command: $ env GB_GUI=gb.qt5 gambas3 and same for qt4 as well. Maybe the errors are related to Linux Mint being a stable (i.e. unchanging) distribution with most programs being several years old and perhaps incompatible with the more up to date Gambas (which I have built from source). The errors are present even with display scaling of 100 % as seen on the screenshot below.
Gambas Mint Qt.png
Gambas Mint Qt.png (273.55 KiB) Viewed 4857 times
I would appreciate if someone could try $ env GB_GUI=gb.qt5 gambas3 to confirm the presence or absence of errors on their Linux Mint setup.

PS: I am using Gambas 3.18.2 and Linux Mint 21.2
User avatar
BruceSteers
Posts: 1580
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: How to solve gambas code editor FONT BLURRINESS on a 4K display with 200 % monitor scale ?

Post by BruceSteers »

have you run the qt5ct settings tool?

there is a font page there, i fixed some problems once by pressing the Create fonts.conf button.

It looks like there is an error in your font config.

Either qt5 font config is not right or it could the theme.
i would try different themes , some are just a bit buggy.
Attachments
Untitled.png
Untitled.png (129.43 KiB) Viewed 4854 times
If at first you don't succeed , try doing something differently.
BruceS
JumpyVB
Posts: 75
Joined: Friday 11th September 2020 9:09am

Re: How to solve gambas code editor FONT BLURRINESS on a 4K display with 200 % monitor scale ?

Post by JumpyVB »

BruceSteers wrote: Saturday 30th September 2023 7:57amHave you run the qt5ct settings tool?
Yes, tweaks on the "Fonts"-Tab in "Qt5 Configuration Tool" fixed this and I can now enjoy clear text. Thank you.
Post Reply