[GNC] Font problem

Adrien Monteleone adrien.monteleone at lusfiber.net
Thu Oct 17 14:39:19 EDT 2019


Looks like you took a detour down in the rabbit hole...

> On Oct 17, 2019 w42d290, at 11:45 AM, Paul de Vries <paul.de.vries at xs4all.nl> wrote:
> 
> My systems have Preferred Language: English end Region: Netherlands, and I want Gnucash in english.
> 
> I tried running Gnucash from terminal, and got:
> 
> (process:11816): gnc.gui-WARNING **: 18:25:47.654: [mac_find_close_country()] Apple Locale is set to a value en_NL not supported by the C runtime
> (process:11816): gnc.gui-WARNING **: 18:25:47.730: [mac_find_close_country()] Using nl_NL instead.
> (process:11816): gnc.gui-WARNING **: 18:25:47.731: [mac_set_languages()] Language list: en:C:nl

Sorry I’m not up on my locale foo. Maybe one of the devs familiar with locale issues can chime in, but I’d be surprised that locale choice is mangling a handful of lowercase glyphs.

> 
> after
> defaults write -app Gnucash-3.7-1 AppleLanguages '(en,en)'
> it changed to:
> 
> /Applications/Gnucash-3.7-1.app/Contents/MacOS/Gnucash
> Application Path /Applications/Gnucash-3.7-1.app/Contents/MacOS/Gnucash
> (process:13533): gnc.gui-WARNING **: 18:36:33.538: [mac_find_close_country()] Apple Locale is set to a value en_NL not supported by the C runtime
> (process:13533): gnc.gui-WARNING **: 18:36:33.541: [mac_find_close_country()] Using nl_NL instead.
> (process:13533): gnc.gui-WARNING **: 18:36:33.542: [mac_set_languages()] Language list: en:C:en:C
> 
> so far so good.
> but then:
> 
> (Gnucash:13550): Gtk-WARNING **: 18:39:28.008: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node header owner GtkNotebook)
> (Gnucash:13550): Gtk-WARNING **: 18:39:28.008: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tabs owner GtkNotebook)
> (Gnucash:13550): Gtk-WARNING **: 18:39:28.009: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tab owner GtkNotebook)
> 
> Could this be the source of my font problems?

I don’t think so because the gadgets throwing the errors are ‘header’, ’tabs’, and ’tab’ which are all part of parent widget GtkNotebook. Those are all part of the UI, not the Report content where the issue is. I also see similar warnings from time to time. I’d suspect it is an order of operations thing because those nodes do end up on the screen. (the gadget is called to be drawn and then the size specified after)

> Another suggestion:
> Don't know the internals of GTK3 but when working on porting Munin (System monitoring tool) to Mac I also had problems, where Pango/Cairo didn't use Fontconfig. That was solved by specifying an environment variable PANGOCAIRO_BACKEND=fc.
> This results in endless messages like
> 
> (Gnucash:14379): Gtk-WARNING **: 18:42:41.645: drawing failure for widget 'GtkLabel': out of memory
> (Gnucash:14379): Gtk-WARNING **: 18:42:41.645: drawing failure for widget 'GtkBox': out of memory
> (Gnucash:14379): Gtk-WARNING **: 18:42:41.645: drawing failure for widget 'GtkWindow': out of memory
> (Gnucash:14379): Gtk-WARNING **: 18:42:51.159: drawing failure for widget 'GtkMessageDialog': out of memory
> 
> Gnucash then hangs in startup.
> 
> Maybe there is a problem with low level font handling?

Again, a developer would have to chime in as I’m not versed in GTK or Fontconfig font handling, sorry.

This seems to be a bit of a detour. I’d still explore simpler, higher-level things first, like the fonts in the report stylesheets.

Regards,
Adrien


More information about the gnucash-user mailing list