[GNC] Changing default font size in Gnucash 3.2

Geert Janssens geert.gnucash at kobaltwit.be
Mon Jul 2 14:20:28 EDT 2018


Op maandag 2 juli 2018 18:34:18 CEST schreef John Ralls:
> > On Jul 2, 2018, at 9:03 AM, Geert Janssens <geert.gnucash at kobaltwit.be>
> > wrote:> 
> > Op maandag 2 juli 2018 16:28:39 CEST schreef John Ralls:
> >>> On Jul 2, 2018, at 2:46 AM, Geert Janssens <geert.gnucash at kobaltwit.be>
> >>> wrote:>
> >>> 
> >>> Op zondag 1 juli 2018 21:03:50 CEST schreef Daniel Dickinson:
> >>>> I just upgraded to Gnucash 3.2 (on Mac OS X 10.13.4) and am having
> >>>> trouble
> >>>> setting a default font size.  The current font is too small and makes
> >>>> it
> >>>> very difficult for me to read the register.
> >>>> 
> >>>> 
> >>>> Following the instructions at https://wiki.gnucash.org/wiki/GTK3, I
> >>>> created
> >>>> the file ~/Library/Application
> >>>> Support/Gnucash/config/gtk-3.0/settings.ini
> >>> 
> >>>> (this file didn't exist previously), with the following contents:
> >>> I wrote these instructions, but I'll admit the location of this file on
> >>> Macos was an educated guess which I can't verify as I don't have an
> >>> Macos
> >>> system available to experiment with.
> >>> There is potentially a second location that could be queried rather that
> >>> the one above.
> >>> Can you try to make the changes here instead:
> >>> ~/.config/gtk-3.0/settings.ini
> >>> 
> >>> I would be interested to learn if that does work.
> >>> 
> >>> Otherwise the suggestion by GT-I9070 H is the third option. It is likely
> >>> to
> >>> work because we have more direct control over GNC_CONFIG_HOME.
> >> 
> >> ~/Application Support/Gnucash/config/gtk-3.0 is the correct path on
> >> MacOS.
> >> XDG_CONFIG_HOME is set in
> >> Gnucash.app/Contents/Resources/etc/gnucash/environment and needs to be
> >> changed there to override it.
> >> 
> >> I’ve found that settings.ini doesn’t work to set the font, you need a
> >> gtk.css in the same directory with contents like * {
> >> 
> >>    font-family: Arial;
> >> 
> >> }
> >> 
> >> and whatever other CSS font directives you want.
> > 
> > I'm curious what gtk3 does differently on MacOS that it doesn't pick up
> > settings.ini in its config file, or ignores the font configuration. Or is
> > there another font override in the way on that platform ?
> 
> Geert,
> 
> That I don’t know. As it happens I spent some time yesterday debugging
> https://bugs.gnucash.org/show_bug.cgi?id=796727
> <https://bugs.gnucash.org/show_bug.cgi?id=796727>; I’ve gotten far enough
> to understand that gtksettings isn’t loading the default settings.ini in
> GnuCash.app/Contents/Resources/etc/gtk-3.0 (I think I need to add yet
> another line to environment setting XDG_CONFIG_PATH to include the bundle
> directories), but even after copying it to ~/Library/Application
> Support/Gnucash/config/gtk-3.0 it parses the line ‘gtk-key-theme-name =
> Emacs’ but doesn’t change the GSettings value from “Mac” which is set
> programmatically earlier in GSettings initialization.

Ok. At least is shows settings.ini is being read in ~/Library/Application 
Support/Gnucash/config/gtk-3.0. But it seems to not apply any of the settings 
in that file...

Geert




More information about the gnucash-user mailing list