After using Geany for almost a day using the Solarized Dark theme, I felt that the text in Geany was slightly harder to read than in Notepad++, an editor I've been using for the past couple years. At first I thought I was imagining things, but after taking screenshots from each editor and comparing them side-by-side with a magnifying glass, I finally figured out why: the font rendering in Geany is ever so slightly darker (or thinner?) than the font rendering in other code editors like Notepad++. Here is the comparison:
![image](https://cloud.githubusercontent.com/assets/4110567/15953393/0537111c-2efd-11...)
Notepad++ is on top and Geany is on the bottom. It is barely noticeable in the image above, but if you zoom in and use the eyedropper tool you will find that the colors in Geany are darker than the ones in Notepad++:
![image](https://cloud.githubusercontent.com/assets/4110567/15953590/2826f2a8-2eff-11...)
Maybe I'm just more sensitive to this than others, but after spending a day editing code containing lots of strings using the Solarized Dark theme, I find that the code in Geany is slightly harder to read.
I'm not sure how to categorize this because I suspect it is related to the native font rendering engine that is used in Geany.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1066
Indeed it is likely to be a difference between rendering engines, Geany uses the GTK rendering engine, but IIUC Notepad uses windows native rendering.
All you can do is tweak the theme values to suit yourself.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1066#issuecomment-225086579
It's definitively the rendering, Scintilla's Pango/Cairo rendering looks kind of rough on all platforms compared native Win32, or Qt or even real GTK+ font rendering like GtkSourceView-based apps. It's particularly bad on Windows though.
@thdoan You could try to copy the solarized-dark.conf file and make all the styles bold, it might give you better results. I have several themes where I've made "all bold" and "no bold" variants, which I use depending on the font and size to get adequate looking fonts.
IMO this bug report could made valid by changing the title to "Font rendering sucks." :)
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1066#issuecomment-225087435
Would it be a big undertaking to adapt a different rendering engine?
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1066#issuecomment-225088558
@thdoan yes, for a separate rendering engine. It would probably be less difficult to change Scintilla to mimic closer GTK+'s normal font rendering (ex. matching hinting, aliasing, widths, etc). For a comparison between Scintilla and GTK+'s normal font rendering, assuming you're not using "native" win32 dialogs, open the Font Chooser (View->Change Font) and compare the font shown in the "Preview" part of the font chooser dialog to what you see in Geany.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1066#issuecomment-225088853
Scintilla doesn't put any effort into GTK on windows because it also provides a native windows version. But IIUC it would be a lot of work to change Geany to use that, and its only on windows, so there would be a big increase in support work as there would now be two versions of Geany.
On 10 June 2016 at 14:10, Matthew Brush notifications@github.com wrote:
@thdoan https://github.com/thdoan yes, for a separate rendering engine. It would probably be less difficult to change Scintilla to mimic closer GTK+'s normal font rendering (ex. matching hinting, aliasing, widths, etc). For a comparison between Scintilla and GTK+'s normal font rendering, assuming you're not using "native" win32 dialogs, open the Font Chooser (View->Change Font) and compare the font shown in the "Preview" part of the font chooser dialog to what you see in Geany.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/1066#issuecomment-225088853, or mute the thread https://github.com/notifications/unsubscribe/AAxgTe0BnYxQmXqCtfXKlJrM8rLq2JVyks5qKOOigaJpZM4IymIF .
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1066#issuecomment-225089402
Thanks for the explanation guys :+1:
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1066#issuecomment-225089719
@codebrainz Here the screenshots are very slightly different, I don't think you can say "one sucks" and the other not :) And apparently the font rendering quality in Geany also depends on the font (and maybe some system settings?), as I never noticed a problem with the font I use (my desktop's default) and all my efforts to see whether it was worse than other apps failed to do so. So I guess, YMMV.
But kind of a stupid question: have you checked the themes really use the same color? I mean, they are separate themes, Geany's just happen to try and mimic another one; what if the color just wasn't exactly the same?
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1066#issuecomment-225132342
@b4n Yup, both editors are using the following color with Consolas 10pt font:
``` base03=#002b36 base02=#073642 base01=#586e75 base00=#657b83 base0=#839496 base1=#93a1a1 base2=#eee8d5 base3=#fdf6e3 yellow=#b58900 orange=#cb4b16 red=#dc322f magenta=#d33682 violet=#6c71c4 blue=#268bd2 cyan=#2aa198 green=#859900 ```
When I get a chance I will try turning up the luminosity in Geany to see if it makes a difference.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1066#issuecomment-225143199
It could also depend on how the different rendering engines map 24 bit colours to whatever colour depth your GPU uses.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1066#issuecomment-225145199
Just wanted to say I switched my font from "DejaVu Sans Mono" to "Cascadia Mono NF", and this problem is alleviated a significant amount for me. ("Cascadia Mono Nerd Font" is a subset of the "Cascadia Code" font)
github-comments@lists.geany.org