New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot change symbol or message fonts #2069
Comments
WFM, always post the GTK version Geany is using (top few lines of tools->debug messages) |
GTK 3.22.30, GLib 2.56.4 |
Hum, that's odd, WFM with GTK 3.22.11 on Debian stable. I'll try to check with 3.24 on Unstable tomorrow. |
Verified that the fonts are correct in geany.conf and that changing the VTE font works.. So, edit and VTE fonts work, but not status/scribble nor symbols side panel. |
Well, side panel, and status scribble are straight GTK widgets, maybe that specific version of GTK is broken with those fonts. monospace and sans are aliases for some actual font, so what is the actual font being used? |
@tempest766 Could you try also changing GTK theme? Might this be the new Adwaita one? In any case, maybe a theme that would define a font very specifically for notebook tabs or so might go in the way. |
@b4n even if a theme defines a default font for a text item, surely even the Gnomists are not arrogant enough to make it prevent the application changing its own font? Or are they .... hmmmm |
Tested with 3.24.4 under Debian Unstable and it works fine as well. @elextr yeah well, I guess it depends on how we do it, and which API GTK broke… |
I run multiple displays with differing DPIs so I had to find a common denominator that would pass on both monitors. I have a ~/.config/gtk-3.0/gtk.css in a config directory that looks like:
but in this case the precedence is wrong. I'd expect that fonts selected in an application should override the default. Removed the css file and geany uses the correct fonts again. I don't do anything specifically with themes, and try to avoid generally try to avoid gtk whne possible. So, if it is setting a theme implicitly then I'm not even sure how to change it. |
OK so that's the reason, the way we apply the font must be incompatible with this. I'll check if there's something easy we can do for this not to be a problem (probably having something of the same style on our side would do, but it might be tiresome to build dynamically). |
I have read the documentation of
So I assume as soon as there is a CSS file we would need to apply a CSS style generated from the preferences settings to let the changes have any effect in this case (not tested - unconfirmed). |
@LarsGit223 deprecation shouldn't mean it doesn't work, unless GTK have forgotten their promise to not break stuff until the NEXT release. |
@elextr: I agree, but the sentence "This function is not useful in the context of CSS-based rendering." sounds critical to me. If I find the time I will do some tests with applying a CSS style instaed of calling |
@LarsGit223 The thing is that ~/.config/gtk-3.0/gtk.css has the highest priority possible -- user priority. It's actually pretty much the right thing to do to let this win. All in all, I'm not even sure the behavior described in this report is wrong. After all, the user selected a specific font in a place meant to override everything, so why would we fight it? If the user really wants something else, it's totally possible to have the right piece of CSS in ~/.config/gtk-3.0/gtk.css to do so, likely something like this: #GeanyMainWindow paned>paned:first-child>notebook:first-child scrolledwindow:first-child>treeview { font: sans 12; }
#GeanyMainWindow paned>notebook:last-child scrolledwindow>treeview { font: monospace 14; } We could possibly make this easier by giving a CSS ID to the symbols pane's treeview if really needed, but again the only case it matters is when this gets overridden manually. In the end, yes, providing a custom |
@b4n I suppose that if the user has the css file then yeah, its reasonable to assume they intended it and know how to put Geany specific overrides in that. But its confusing if the GUI selection works if there is no user GTK override and not in other cases. Perhaps the GUI selection should be removed from Geany, after all we shouldn't actually make it easy for users to override the all powerful Gnome theme using a GUI, but should tell them to go create an arcane CSS like text file in their |
Depends how you look at it, it's not like it's just Geany trying to force application default styles on a user, rather it's providing the USER a GUI to OVERRIDE the theme font, so priority higher than 800 might make some sense. |
Edit/Preferences/Interface/Fonts dialog:
Editor font is the only one that is honored. Even though smaller fonts are selected for symbol List and Message Window, they still display 18pt fonts, instead of 14pt. Editor font is only one that works as expected.
Fedora 28
Geany 1.34.1
The text was updated successfully, but these errors were encountered: