Quote:
Originally Posted by jswinden
It could be as simple as sloppy HTML/CSS. I've modified several eBooks in the past that looked like they were created by MS Word then incorrectly converted to HTML. In these books, rather than use simple and effective CSS class and heading tags to assign formatting, they use span tags on nearly every line of HTML. These kind of sloppy files are a mess and a PITA to work with. I wouldn't be surprised if calibre just choked on them.
|
If a book sets the font on every paragraph, Calibre will be unable to embed a font. It will embed it allright, but the CSS on each paragraph will override it.
The only way to fix that is to open the book in Sigil (if it's not an EPUB you must convert to it first, further messing up the code), and then use a regular expression to rip all the font-family properties out of the <p> tags.
Maybe the book is even using <font> tags...
Coding like that is really old style. If you do it on a website nowadays, you'll probably get ridiculed, fired, stoned, or shot.