[GNC] Changing typeface using CSS (Windows 10)
Fred Bone
Fred at mandfb.me.uk
Wed Dec 21 05:59:26 EST 2022
On 21 December 2022 at 0:11, Adrien Monteleone said:
> Terrence,
>
> You nearly had it right the first time.
>
> You need the "#" in front of the selector:
>
> "#gnc-id-main-window"
>
> The initial post you made left off the '#' sign at the beginning. If it is
> not there in your CSS file, that would be why it didn't work. That symbol
> indicates a CSS 'id' and without it, a 'named node'. If the node is not
> named as such, but does have that id, then your rule without the symbol
> will never work.
>
> Also, I'm surprised the wiki doesn't show this, but I'm fairly certain you
> have to quote font family names that have spaces in them.
Not true if the CSS interpreter is conformant, unless one (or more) of
the words happens to be a CSS keyword or is not parseable as an
"identifier"
<https://www.w3.org/TR/css-fonts-3/#propdef-font-family>
However, quoting is always harmless.
More information about the gnucash-user
mailing list