benp32x left a comment (geany/geany#3701) In my editors, I prefer to use non-aliased font rendering. I first noticed the font rendering issue on Manjaro (as this is rolling release), and then in Mint when Geany got to version 2.0. To get a better idea as to what is going on here, we need to look at what Geany is doing to the Pixels before aliasing is applied:
 This shows: 1.) the font selection window invoked from Geany's preferences 2.) Geany's rendering of "The quick brown fox jumps over the lazy dog." 3.) The same phrase in Mousepad The font is "Courier New Regular, 9" from the package "ttf-mscorefonts-installer". Geany is clearly not rendering the font properly, resulting in all types of inconsistencies. I was about to submit my comment, but then I thought... "What happens if you set a decimal value for the font size? Can you even do that?" It turns out, you can, and in doing so I noticed the accuracy of the font rendering improved. Eventually I got a 1:1 match by setting Geany's font size for Courier New Regular to "8.755". Now Geany's rendering matches Mousepad's rendering exactly:  For the situations in previous comments, you can dial in the right font size value as an interim fix by disabling aliasing, matching its rendering against the same font in another application as I did, and then simply re-enabling aliasing again. This should get you back to the expected rendering for your chosen font. As an aside: On Linux, rather than having to disable aliasing globally on your system, you can target specific fonts to be selectively non-aliased. You can have any application (or a web page even) render mixed aliased / non-aliased fonts. Here is the code to achieve this: 1. Save the following to: /home/<user>/.config/fontconfig/fonts.conf 2. Then run "fc-cache" 3. Reload any application utilizing these fonts. ```xml <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <match target="font"> <test name="family" qual="any"> <string>Courier New</string> </test> <edit name="antialias" mode="assign"> <bool>false</bool> </edit> </match> </fontconfig> ``` -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3701#issuecomment-2989541382 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany/issues/3701/[email protected]>
