Quote:
Originally Posted by snarkophilus
With some help and suggestions from this thread, I've tracked this down to user error.
The epub I was looking at, a Calibre converted Kindle book, had the following spread through the css:
Code:
font-family: "Times New Roman", "serif";
Removing those and all is good! I had thought that I was looking at the font specified in my default.css when I was actually looking at the default T1 font, and for this reason had thought that my default.css was working as expected.
Calibre has a option under Look & Feel/Filter Style Information to remove font style information. I haven't tried that yet, but suspect it would have helped.
A quick look through my library shows 139 books out of 462 have a font-family: reference. A number of these are just font-family: Serif so I can ignore them, but there are a number I'll go and have a further peek at.
I guess there must be a CSS way to override something like font-family: "Times New Roman"? More ideally, I'm looking for something that can say "if there's no embedded font, then override the font". For example, I wouldn't want to override the Fontin font in Jelby's Three Men in a Boat epub.
Cheers,
Simon.
|
That sounds very much like a Word document converted to ePub via Calibre and not cleaned up. Word output is crap when the resulting document is going to be made into an eBook. You have to clean up the garbage inside the Word document. Best way to do it is to copy all the text from Word, past into a text editor, load that text file into Sigil and proceed to make an ePub eBook from there. You don't have the garbage and it should take a lot less time to format as in the text editor, you can search/replace to surround every line with <p></p> and then work from there. If you use markers in your Word document like _text_ for italics and *text* for bold or even @text@ for smallcaps or _*text*_ for bold italics and even say %text% for centered. Then all you need do is search/replace to put in what you want for the styles. It's not difficult and with a little work can make an eBook in less them then it takes to clean up a Word sourced Calibre converted ePub.