[GNC] Font problem

Adrien Monteleone adrien.monteleone at lusfiber.net
Thu Oct 17 14:28:10 EDT 2019



> On Oct 17, 2019 w42d290, at 11:13 AM, Paul de Vries <paul.de.vries at xs4all.nl> wrote:
> 

> 
> GTK_CONFIG_HOME:
> HOME/Library/Application Support/GnuCash/config/gtk-3.0/gtk.css
> does affect the general UI but not error meesages and 'print invoice' button.
> 
> GNC_CONFIG_HOME:
> HOME/Library/Application Support/GnuCash/gtk-3.0.css [https://wiki.gnucash.org/wiki/GTK3#Typefaces]
> does exactly the same.
> 
> No differences between placing css in GNC_CONFIG_HOME or GTK_CONFIG_HOME.

Good to know.

> lots of duplicates, all were disabled, now removed. 
> minor warnings for Bauhaus 93 (1), DYMO Symbols (1), Tamburo (1)
> restarted mac, restarted gnucash. nothing has changed.
> 
> 
> [..default font skipped..]

So not a bad font after all, hmm...

> 
> 
>> As for the printable reports - fonts are defined in stylesheets within GnuCash., not in the config directories or a custom app-wide CSS file. (as noted above) You can create your own or edit existing ones. (including the default stylesheet)
> 
> I do accounting for all my family members, they each have different logo's etc> I made personal modifications to a copy of these reports. no problem at all.

But did you specify a custom or modified stylesheet for those reports?


What is the stylesheet assigned to the invoice report in Options > General?


What is the font assignment for non-headings in Edit > Style Sheets > Default?


Are headings assigned the same font?


> 
>> See Edit > Style Sheets for editing them, and Options > General for stylesheet assignment for that report.
>> 
>> I’m not clear what you mean by ‘error messages, etc.’ Dialogs are controlled by the UI and that *should* be affected by a `*` CSS selector. (though GTK3 CSS doesn’t always play nice like web CSS)
> 
> I have a new screenshot: https://imgur.com/a/JW2kTrh
> It shows my css-specified font menlo but the error message has the same problem font.

*Where* are you specifying ‘menlo’?

If in the gtk CSS file, that will *only* affect the UI, so the toolbar, the tabs, and the content of the CoA and the Register.

It *will not* affect reports - so you are seeing two different fonts on the screen in that shot. (and a third - the system font in the window’s title bar)

That screenshot I presume also is an example of what you mean by ‘error messages.’ While it does function that way, the message is printed out as text of the report. (essentially it is a report with an error message rather than your data) But that is different than a pop-up dialog error message. (which *would* be affected by the gtk CSS file)

That screenshot then is affected by the assigned report stylesheet, which is at least – ‘default’, if you haven’t changed it. (see above questions on stylesheets)

Regards,
Adrien


More information about the gnucash-user mailing list