[GNC] Font problem

Paul de Vries paul.de.vries at xs4all.nl
Thu Oct 17 12:45:43 EDT 2019


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

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?

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?




More information about the gnucash-user mailing list