Quote:
Originally Posted by jackie_w
As long as you are planning to do a Calibre conversion to create your epub you can copy the @font-face statements into the Preferences - Common Options - Look&Feel - ExtraCSS box. Then Calibre will use them during every epub conversion.
Note: For some reason Calibre copies them into every html file inside the epub rather than just once into the .css file. However, the result should be the same on your Sony.
If you also want to add some control for margins, widows/orphans, line-height (or any other css attributes which take your fancy), then you could also consider adding some body {... ...} css into the ExtraCSS box, as shown in JSWolf's example in post #91.
If you are not planning to do a Calibre conversion then you need to manually copy the @font-face statements into the .css file inside the epub.
Caveat: ebooks are created in many and various ways by people with varying abilities. Therefore you may come across some epubs which don't work with this simple font customisation. This is because the existing css in the epub is overriding your changes. These badly behaved epubs can always be fixed manually but it will require you to examine the css to see what is going wrong. Consequently, the more you learn about html/css the easier you will find it to knock a recalcitrant epub into shape.
|
Is there anything else you need to do to have Calibre automatically apply the css settings?
I have added JSWolf's sample to preferences --> common options --> Look & Feel --> Extra CSS , but the styles do not get automatically get applied when converting.
If, at the time of conversion I paste the CSS stuff in under Look & Feel, then the settings do get applied to the conversion.
I notice that other options I have checked off in preferences --> common options --> Look & Feel, are also automatically checked off when I view Look & Feel at time of conversion. However, the Extra CSS window is blank.