[GNC] Fonts

Gareth Davies gareth.davies.1 at ntlworld.com
Fri Apr 5 16:01:25 EDT 2019


Adrien,

Thanks for guiding me through the "Way to do it"

It worked a treat.

Many thanks for helping me,
Regards,
Gareth


-----Original Message-----
From: gnucash-user [mailto:gnucash-user-bounces+gareth.davies.1=ntlworld.com at gnucash.org] On Behalf Of Adrien Monteleone
Sent: 05 April 2019 17:52
To: GnuCash Users <gnucash-user at gnucash.org>
Subject: Re: [GNC] Fonts

Gareth,

Yes, everything *between* the ` but not including the ` (if that helps):

`* { font: 10pt verdana, arial, sans-serif; }`

You put the line in a *plain* text file named:

gtk-3.0.css

and place it in:

C:\Users\<your user name>\AppData\Roaming\GnuCash

Then start or re-start GnuCash. You’ll need to restart each time you alter the size or font.

The `*` is a CSS selector indicating ALL elements of the UI. (or of the HTML for a report or webpage) If you only want to target certain elements, you can use those selectors instead.

CSS rules are enclosed in {}.

CSS declarations begin with a property name followed by a `:` and then the values you want to set. The declaration is ended with a `;`.

The above is a shorthand version of separate rules:

font-size:
font-family:

You could specify them separately if you like, as so:

* {
  font-size: 10pt;
  font-family: verdana, arial, sans-serif; }

Note, capitalization on fonts is usually sensitive, so those *might* have to be:

`Verdana` and `Arial` respectively.

Finally, rules can be on a single line if you like, but I write it on separate lines as a readability convention, even for short declarations so they all look the same in a larger file. This allows the selector and the individual declarations to easily stand out. It also makes editing and comment masking much easier, but all of that is well beyond the immediate task here.

Regards,
Adrien



> On Apr 5, 2019, at 7:16 AM, Gareth Davies via gnucash-user <gnucash-user at gnucash.org> wrote:
> 
> Widows 10 V3.5
> 
> I know this is probably a stupid question, but where do I put the line 
> below, and do I put everything in including the asterisk and brackets. 
> e.g
> * { font: 10pt verdana, arial, sans-serif; }
> 
> Regards,
> Gareth
> 
> 
> 
> -----Original Message-----
> From: gnucash-user
> [mailto:gnucash-user-bounces+gareth.davies.1=ntlworld.com at gnucash.org] 
> On Behalf Of Liz
> Sent: 05 April 2019 09:19
> To: gnucash-user at gnucash.org
> Subject: Re: [GNC] Fonts
> 
> On Thu, 4 Apr 2019 13:49:20 -0400
> "Timothy B. Taylor" <taylortb at gmail.com> wrote:
> 
>> For what it's worth ... Notepad worked just fine for me ... GnuCash 
>> 3.5, Windows 10 Pro version 1803 ...
>> 
>> After trying a few variations ... various fonts and sizes ... I ended 
>> up with
>> 
>> * { font: 10pt verdana, arial, sans-serif; }
>> 
>> ... and by the way it works fine on one line ... Thanks! Tim
> 
> However, if you had tried to split the line, you may not have had the 
> same success.
> Could you try with the original
> 
> 
> * {
> font: 12px arial, sans-serif;
> }
> 
> 
> using notepad?
> 
> Liz

_______________________________________________
gnucash-user mailing list
gnucash-user at 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.



More information about the gnucash-user mailing list