It seems from https://wiki.gnucash.org/wiki/GTK3 that you can use
settings.ini for ALL GTK apps installed or the gtk-3.0.css to affectGnuCash
only...  Settings.ini seems to use the gtk-font-xxxx=yyyy format.

Cheers David H.

Typefaces

There are two ways of setting a default font and size for GnuCash.
The first sets an option in GTK's settings.ini for *all GTK applications* (GIMP
etc.),the other uses css to accomplish the same for *GnuCash only*.

   - If neither you nor a program changed the default values before, the
   files mentioned in this section will *not exist*. In this case just
   create them as *pure text files* and with normal file access rights.

The examples below with both set the *default font* to Arial and *font size* to
14.
Via settings.ini

Create if necessary and add the following line to GTK_CONFIG_HOME
<https://wiki.gnucash.org/wiki/Configuration_Locations#GTK_CONFIG_HOME>
/settings.ini:

[Settings]gtk-font-name=Arial 14

General notes

   - In settings.ini, lines beginning with a # and blank lines are
   considered comments.
   - If the file exists and has a [Settings] line just add the font line
   beneath it.
   - Setting font family via settings.ini doesn't work on macOS and
   Microsoft Windows. Use CSS to set font family on those operating systems.

Via css

Create if necessary and add the following to GNC_CONFIG_HOME
<https://wiki.gnucash.org/wiki/Configuration_Locations#GNC_CONFIG_HOME>
/gtk-3.0.css:

* {
  font: 14pt arial, sans-serif;}


On Sun, 16 Jan 2022 at 12:55, D. <sunfis...@yahoo.com> wrote:

> So,
>
> My gtk-3.0.css is in
>
> C:\Users\{USERNAME}\AppData\Roaming\GnuCash
>
> And the designator that changes fonts looks like this:
>
> * {
>    font-size: 16px;
>    font-family: "Arial", sans-serif;
> }
>
> You'd be better off following that, rather than copying from another app.
>
> David T.
> ------------------------------
> *From:* David JamesTK
> *Sent:* Sat Jan 15 20:12:23 EST 2022
> *To:* David H
> *Cc:* GnuCash users group
> *Subject:* Re: [GNC] access to Gnucash Nabble
>
> Copied the config file containing this
>
> [Settings]
> gtk-font-name=Arial 18
> gtk-xft-antialias=1
> gtk-xft-hinting=1
> gtk-xft-hintstyle=hintfull
> gtk-xft-rgba=rgb
>
> Into empty file location C:\Users\david\AppData\Local\gtk-3.
>
> No change, this happened with Thunderbird too, option there was edit css file 
> something mentioned on wiki also.
>
> Cheers
>
> ------------------------------
>
> From: David H <hell...@gmail.com>
> Sent: 16 January 2022 00:50
> To: David JamesTK <davidjame...@hotmail.co.uk>
> Cc: Glenn Fowler <gfowl...@outlook.com>; GnuCash users group 
> <gnucash-user@gnucash.org>
> Subject: Re: [GNC] access to Gnucash Nabble
>
>
> It’s my understanding the file is optional so won’t appear in all locations? 
> Have you tried copying your file into the app data location which is 
> currently empty by the look of things?
>
> Cheers David H.
>
> On Sun, 16 Jan 2022 at 10:35 am, David JamesTK 
> <davidjame...@hotmail.co.uk<mailto:davidjame...@hotmail.co.uk>> wrote:
> Cheers David, tried the local folder first but appears empty (hide system 
> files option off)
>
> C:\Users\david\AppData\Local\gtk-3.0  (empty)
>
> Searching C drive for gtk-3.0 returns four entries below with my comments in 
> blue;
>
> C:\Program Files (x86)\gnucash\etc\gtk-3.0  (currently in this folder)
>
> C:\Users\david\AppData\Local\gtk-3.0  (empty)
>
> C:\Program Files (x86)\gnucash\share\themes\Default\gtk-3.0 (contains css 
> file gtk-keys)
>
> C:\Program Files (x86)\gnucash\share\themes\Emacs\gtk-3.0  (contains css file 
> gtk-keys)
>
> ------------------------------
>
> From: David H <hell...@gmail.com<mailto:hell...@gmail.com>>
> Sent: 16 January 2022 00:09
> To: David JamesTK 
> <davidjame...@hotmail.co.uk<mailto:davidjame...@hotmail.co.uk>>
> Cc: Glenn Fowler <gfowl...@outlook.com<mailto:gfowl...@outlook.com>>; GnuCash 
> users group <gnucash-user@gnucash.org<mailto:gnucash-user@gnucash.org>>
> Subject: Re: [GNC] access to Gnucash Nabble
>
> Probably not, depends what you set GNC_DATA_HOME to I guess  - check that 
> wiki again - 
> https://wiki.gnucash.org/wiki/Configuration_Locations#GTK_CONFIG_HOME
>
> Cheers David H.
> GTK_DATA_HOME
>
> Versions: 3.x and more recent only
>
> GnuCash uses GTK for its graphical user interface; thus, locations that are 
> used by GTK are also relevant. Note the base directories on Windows and macOS 
> for this differ from the base directories for 
> GNC_DATA_HOME<https://wiki.gnucash.org/wiki/Configuration_Locations#GNC_DATA_HOME>.
>
> Linux
> USER_DATA_HOME<https://wiki.gnucash.org/wiki/Configuration_Locations#USER_DATA_HOME>/gtk-3.0
> Windows
> %LOCALAPPDATA%<https://wiki.gnucash.org/wiki/Configuration_Locations#Environment_variables_LOCALAPPDATA_and_APPDATA>\gtk-3.0
> macOS
> HOME<https://wiki.gnucash.org/wiki/Configuration_Locations#HOME>/.local/share/gtk-3.0
>
>
> On Sun, 16 Jan 2022 at 09:56, David JamesTK 
> <davidjame...@hotmail.co.uk<mailto:davidjame...@hotmail.co.uk>> wrote:
> Thanks Glen.
>
> Currently in this folder C:\Program Files (x86)\gnucash\etc\gtk-3.0  on 
> Windows 10 Pro
> editing this file settings.ini
>
> Before
>
> [Settings]
> gtk-xft-antialias=1
> gtk-xft-hinting=1
> gtk-xft-hintstyle=hintfull
> gtk-xft-rgba=rgb
>
> After
>
> [Settings]
> gtk-font-name=Arial 18
> gtk-xft-antialias=1
> gtk-xft-hinting=1
> gtk-xft-hintstyle=hintfull
> gtk-xft-rgba=rgb
>
> Is this the right folder location and entry (18 font not needed, just making 
> it super obvious for any changes)
>
> Thanks, David
>
>
> ------------------------------
>
> From: Glenn Fowler <gfowl...@outlook.com<mailto:gfowl...@outlook.com>>
> Sent: 15 January 2022 23:47
> To: David JamesTK 
> <davidjame...@hotmail.co.uk<mailto:davidjame...@hotmail.co.uk>>
> Cc: GnuCash users group 
> <gnucash-user@gnucash.org<mailto:gnucash-user@gnucash.org>>
> Subject: Re: [GNC] access to Gnucash Nabble
>
> Hi,
>
> You can use any text editor
>
>
> On Sat, Jan 15, 2022, 6:20 PM David JamesTK 
> <davidjame...@hotmail.co.uk<mailto:davidjame...@hotmail.co.uk><mailto:davidjame...@hotmail.co.uk<mailto:davidjame...@hotmail.co.uk>>>
>  wrote:
> Hello all,
>
> No idea if this will reach anyone but wanted to ask a question please.
>
> Just switched back to using Windows (long story) but noticed the font is 
> smaller than on Mint using the same screen.
>
> Followed most of the GTK 3.0 instructions on Wiki including editing 
> settings.ini file as per their help file, unfortunately no change at all.
>
> Do I need to run GTK inspector to edit or can this be done in notepad (as I 
> have done?)
>
> Thanks,
>
> David
>
>
> ------------------------------
>
> gnucash-user mailing list
> gnucash-user@gnucash.org<mailto:gnucash-user@gnucash.org><mailto:gnucash-user@gnucash.org<mailto:gnucash-user@gnucash.org>>
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
> ------------------------------
>
> gnucash-user mailing list
> gnucash-user@gnucash.org<mailto:gnucash-user@gnucash.org>
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
> ------------------------------
>
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
>
_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to