Embedded fonts don't always work

Bug #894058 reported by dgatwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Won't Fix
Undecided
Unassigned

Bug Description

In an EPUB book I'm currently building, one embedded font fails to load: the drop cap font. If you view the attached sample, the drop cap should be a serif font. Instead, it is getting displayed with some default sans-serif font as though the type system failed to load the font correctly and substituted a fallback font.

What's curious is that other embedded fonts in the same document work fine. This is the only one that fails. I can see no obvious differences between the @font-face declaration for this font and the ones that work.

The content looks correct if I view it in Safari, Chrome, or Xcode's doc viewer window (even Xcode 3), which suggests that this is probably a bug in your code somewhere.

I've attached a minimal test sample that demonstrates the bug.

Configuration:

Mac OS X v10.6.8
Safari 5.1.1
Calibre 0.8.27 (bug goes back at least as far as 0.8.17)

Revision history for this message
dgatwood (dgatwood) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 894058

This is caused bya bug in Qt WebKit the library calibre uses to render HTML,
it is triggerred when the font family defined inside the font file is
different from that used in the @font-face rule. It cannot be fixed at the
level of calibre code.

 status wontfix

Changed in calibre:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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