Keep in mind that Gtk decided that CSS was a convenient standard for describing 
style information and adopted a subset of it for its use. That’s not the same 
as the W3C’s recommendations for HTML style that also happen to be expressed 
with CSS. Your example is apt: Both use the CSS font-family attribute, but with 
HTML one can specify multiple arguments of decreasing specificity and the 
render engine will find a “best fit”. With Gtk you specify exactly one and 
either it’s available and used or it’s not available and Gtk falls back on its 
default.

Regards,
John Ralls


> On Aug 1, 2018, at 8:46 PM, Adrien Monteleone 
> <[email protected]> wrote:
> 
> Oh, and if ‘font-family: Arial Bold;’ works, but ‘font-weight: bold;’ on the 
> regular Arial font does not, then ‘font-weight: bold;’ is likely not working 
> at all.
> 
> ‘Arial Bold’ is it’s own distinct font. (though the original ‘Arial’ can be 
> made to look bold in most applications. There are several other variants of 
> Arial as well.)
> 
> Most web browsers will first try to use a natural bold variant if found 
> before doing their own font weighting, but Gtk may not be getting either of 
> these methods right.
> 
> Regards,
> Adrien
> 
>> On Aug 1, 2018, at 4:53 PM, GT-I9070 H <[email protected]> wrote:
>> 
>> Em qua, 1 de ago de 2018 às 16:54, Adrien Monteleone 
>> <[email protected]> escreveu:
>> font-weight: bold might depend on the font file itself, though Arial pretty 
>> much includes the kitchen sink and a dishwasher for good measure.
>> 
>> Try:
>> 
>> font-weight: 600;
>> 
>> You can use #s instead of names in increments of 100. (100,200,300...900) I 
>> think 400 is the same as ’normal’.
>> 
>> I had forgotten to say that this
>> 
>> #account_tree header button {
>>  font-family: Arial Bold;
>> }
>> 
>> and
>> 
>> #account_tree {
>>  font-weight: 600;
>> }
>> 
>> works, and I had already tested this
>> 
>> #account_tree header button {
>>  font-weight: 600;
>> }
>> 
>> for several values and does not work.
>> See: https://www.w3schools.com/cssref/pr_font_weight.asp
>> 
>> 
>> Regards
>> GTI
> 
> 
> _______________________________________________
> gnucash-user mailing list
> [email protected]
> 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.

_______________________________________________
gnucash-user mailing list
[email protected]
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.

Reply via email to