Unable to force sans-serif font replacement via Preference menu in Calibre Viewer

Bug #2032694 reported by Forster Procerus
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

I'm using Calibre 6.23.

When viewing books, If I choose another sans-serif font via the 'Font' menu in Preferences, that font is not updated at all in the Ebook-viewer. The sans-serif elements in the books stay with the Arial font, and this occurs in the case of custom or Windows system fonts. I have checked that the books in question have unstylized fonts with CSS "font-family:sans-serif;" classes.

However, If I choose the same sans-serif font as the default unstylized replacement for serif fonts, it works without a hitch and replaces the default serif font with the new sans-serif font.


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

I cannot replicate with the following html

        <meta charset="utf-8" />
        <p style="font-family: sans-serif">Test for sans-serif font</p>
        <p style="font-family: serif">Test for serif font</p>
        <p>Test for default font</p>

Changing the sans-serif font changes the font as expected in only the
first paragraph

Changed in calibre:
status: New → Invalid
Revision history for this message
Forster Procerus (enterio) wrote :

This issue arrises on Windows 10, on my personal computer (Calibre 6.23) and at work (Calibre 6.1).
At work, I have reset to the default settings by deleting the settings files for Calibre and I've also reinstalled it, but the issue persists.
The issue also arises on the code you just posted, so the problem can't be in the books I've tested.
The sans-serif font displayed is Arial.


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

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

Changed in calibre:
status: New → Fix Released
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.