After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 767294 - Make custom fonts optionally global via CSS + variables
Make custom fonts optionally global via CSS + variables
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2016-06-06 15:01 UTC by Richard Kuesters
Modified: 2021-07-05 14:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Richard Kuesters 2016-06-06 15:01:58 UTC
Hi!

I would like to know the possibility of creating a form of "global variable" to use in Gnome Shell CSS theme making to respect the user preferred font? I see this a lot in Qt development (mostly colors) but not in Gnome (and I'm not talking about SASS variables).

As an example, in gnome-shell my favourite theme is Arc, so I have in "stage" the following rule:

```
font-family: Futura Bk bt, Cantarell, Sans-Serif;
```

Well, I don't mind using Futura, but I do prefer to use my already chosen custom font for Gnome, which already resides at "/org/gnome/desktop/interface/font-name". So, for theme makers - even though they might prefer to use their fonts - I think the user configuration should be taken in concern. I'm not creative at giving ideas, specially for this situation, so my suggestion might look creepy, but it can give a better idea of what the CSS could look like (if any suggestion applies):

```
font-family: "@1", Futura Bk bt, Cantarell, Sans-Serif;
...
font-family: "${org.gnome.desktop.interface.font-name}", Futura Bk bt, Cantarell, Sans-Serif;
..
font-family: dconf('org.gnome.desktop.interface.font-name'), Futura Bk bt, Cantarell, Sans-Serif;

```

I'm filling this enhancement because I even have made a script to "automate" the task when the theme is updated, so my desktop looks uniform :)

My best regards,
Richard.
Comment 1 Jan Niklas Hasse (Account disabled) 2017-04-27 19:14:30 UTC
Please see my comment here: https://bugzilla.gnome.org/show_bug.cgi?id=688288#c7

Another good name would be system-ui, this is what Chromium is using: https://bugs.chromium.org/p/chromium/issues/detail?id=654679
Comment 2 GNOME Infrastructure Team 2021-07-05 14:16:17 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.