Hi,
I was testing some new fonts (especially FiraCode [1] and Cascadia-Code [2]).
As you may know these fonts allow changing their appearance with some variants by defining Stylistic Sets through some configuration, like indicated in [3], for example
Does geany support defining such settings in some way?
I tried to leverage GTK3 CSS via geany.css, adding something like this:
``` notebook stack widget>widget { font-feature-settings: "ss19"; } ```
I checked through `env GTK_DEBUG=interactive geany` that the css is actually seen by the running software and app[lied to the document container in the UI, but it looks like it's not affecting the font.
(ss19 in Cascadia-Code should give barred zero in place of dotted zero, was just one simple change I used for testing. I could use any other of the supported variants)
My selector choice was naive, though, so maybe that's the problem.
Do you have any indication or this is unsupported and would require software changes?
Thanks in advance.
[1] https://github.com/tonsky/FiraCode
[2] https://github.com/microsoft/cascadia-code
[3] https://github.com/tonsky/FiraCode/wiki/How-to-enable-stylistic-sets
I presume you mean the font in the editor window, other widgets should respond to the GTK CSS.
But as the editor window has differing styling per syntactic element recognised for each programming language supported, standard GTK CSS just won't cut it.
The editor widget is from the Scintilla project (www.scintilla.org) and does not appear to support font features AFAICT (https://www.scintilla.org/ScintillaDoc.html) so neither does Geany.
But the GTK library used by Scintilla does appear to support them https://docs.gtk.org/Pango/type_func.AttrFontFeatures.new.html. You would need to raise a request on the Scintilla project for it to be added there before support can be added in Geany.
Cheers Lex
On Fri, 2 Sept 2022 at 18:47, Guido Falsi via Users users@lists.geany.org wrote:
Hi,
I was testing some new fonts (especially FiraCode [1] and Cascadia-Code [2]).
As you may know these fonts allow changing their appearance with some variants by defining Stylistic Sets through some configuration, like indicated in [3], for example
Does geany support defining such settings in some way?
I tried to leverage GTK3 CSS via geany.css, adding something like this:
notebook stack widget>widget { font-feature-settings: "ss19"; }
I checked through `env GTK_DEBUG=interactive geany` that the css is actually seen by the running software and app[lied to the document container in the UI, but it looks like it's not affecting the font.
(ss19 in Cascadia-Code should give barred zero in place of dotted zero, was just one simple change I used for testing. I could use any other of the supported variants)
My selector choice was naive, though, so maybe that's the problem.
Do you have any indication or this is unsupported and would require software changes?
Thanks in advance.
[1] https://github.com/tonsky/FiraCode
[2] https://github.com/microsoft/cascadia-code
[3] https://github.com/tonsky/FiraCode/wiki/How-to-enable-stylistic-sets
-- Guido Falsi mad@madpilot.net _______________________________________________ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On 02/09/22 11:40, Lex Trotman wrote:
I presume you mean the font in the editor window, other widgets should respond to the GTK CSS.
Yes, I meant the editor window.
But as the editor window has differing styling per syntactic element recognised for each programming language supported, standard GTK CSS just won't cut it.
The editor widget is from the Scintilla project (www.scintilla.org) and does not appear to support font features AFAICT (https://www.scintilla.org/ScintillaDoc.html) so neither does Geany.
But the GTK library used by Scintilla does appear to support them https://docs.gtk.org/Pango/type_func.AttrFontFeatures.new.html. You would need to raise a request on the Scintilla project for it to be added there before support can be added in Geany.
I see. Thanks for the pointer, I'll take a look at those!