Calibre 5.99: font-weight oddities

Bug #1980792 reported by ownedbycats
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

Calibre 5.99.11* (run from source)

I'm using the Calibri font.

In the comments field, the 'bold' button does this:

<p style="font-weight: 700">test</p>

However, comments in books added before the upgrade to 5.99 have font-weight set to 600, and bold text in downloaded metadata also is. This results in the font looking wrong -- see the screenshot for an example.

Revision history for this message
ownedbycats (ownedbycats) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote :

Well, this is a change in Qt 6 going from 600 to 700. There's not much I
can do about it. I have changed the comments editor widget to recognize
and convert font-size:700 to plain html as well as font-size:600 which
should fix the bold button, which will generate <em> tags instead of
<span style="font-weight:700"> however, there isnt anything I can do
about Qt's changed rendering for font-weight:600, if you dont like it,
you can use the bulk metadata edit's search and replace tab to change
all font-weight:600 to font-weight: 700 or font-weight: bold

Changed in calibre:
status: New → Invalid
Revision history for this message
Kovid Goyal (kovid) wrote :

Make that <strong> not <em>

Revision history for this message
ownedbycats (ownedbycats) wrote :

I found that searching comments:font-weight finds everything with bold text, which makes search and replace easier. Thanks. :)

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.