Conflict: font-style & font-weight with regard to bold text

Bug #1639650 reported by Christopher M. Rogers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

The readout in the drop-down font-style menu works when font-style svg property is set, however fails to output the correct value when font-weight is set.

See the example file attached.

The first text line contains text with two font weights, one normal, and one bold.
No matter where the cursor is placed on in that line the font-style dropdown says "Normal"

I believe this has to do with font-style being something completely different to font-weight in css. You would not use "font-style:bold" in css, but rather "font-weight:bold".

The two should be reconciled in my opinion to prevent confusion, and also to prevent problems like this from occurring.

Since we are using CSS, I believe it's better to change the font-style dropdown to instead reflect either the font-style or font-weight (or both, if it's both italic and bold).

css font-weight has the additional problem of trying to fake different weights of text for fonts that do not have a bold variant. This is more often than not ugly as hell, but still usable in some cases where boldness (or lightness) is more important than preserving pristine letterforms.

The typographer in me says to do what other vector programs do and disallow this entirely, but the utilitarian in me says let the people decide for their own project. To do that correctly, we'd need another modifier dropdown with a list of weights: Normal, bold, bolder, lighter that serves to offset the chosen font style. Possibly this could be hidden under a plus next to the font-style dropdown so it's not visible (and thus confusing) all the time. hitting the plus would add a css font-weight value to the selected text, and enable a second dropdown with font-weight options provided in css.

Thoughts?

Tags: css fonts
Revision history for this message
Christopher M. Rogers (cajhne) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.