![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2011
Device: bq
|
Default font in EPUB convertion
I've been looking around the forum but haven't found an answer to this ¿simple? question.
When converting any document into the EPUB format, Calibre takes as default font the Times New Roman one. Is there any way to force the conversion to create the new document with another font? I know it can be done individually editing the stylesheet.css document with Sigil, but when this task has to be done in dozens of documents, it can really become tedious. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Calibre definitely does not default to Times New Roman. Calibre defaults to doing nothing at all around fonts. If the document itself does not specify fonts then I believe ePub (and html in general) default to sans-serif.
You can specify a preferred font/font family during conversion by using the extra css configuration under look and feel - just add the css you like to specify your preferred font. Note that Calibre doesn't support inserting a font during conversion, if you choose a font that's not embedded in your epub or included in your reader you'll need to take care of putting that font somewhere yourself. If you're referring to Calibre's built in viewer, I don't believe it defaults to Times either, but regardless you can go to it's preferences (expand the viewer toolbar to find the icon), and change to your personal preference. Last edited by ldolse; 06-11-2011 at 09:29 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2011
Device: bq
|
Sorry to disagree, but Calibre DOES impose the Times New Roman font. In fact, just try to convert any FB2 document that does not include any reference to any font, and you'll see that Calibre's EPUB output includes, inside the 'stylesheet.css', the instruction font-family: "Times New Roman", Times, serif;. It includes it several times: always at the .paragraph specification and at some other .calibre# ones.
On the other hand, I've also tried to use the 'extra css configuration' item to control the output font, trying to change, for instance, to font-family: "Verdana", Verdana, sans-serif;, but with no success. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Odds are that there is something about the fb2 input that's causing Calibre to preserve that style during conversion. I convert from other formats to epub all the time and have never had Times New Roman forced as a font. A search of the source code shows Times comes up in a handful of places, but nowhere related to conversion except for rtf files.
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That is a feature of the FB2 Input plugin, which specifies those fonts.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2011
Device: bq
|
However, it is impossible to control that feature, neither from the preferences nor at conversion time.
Could somebody, please, direct me to some link where I can learn how to control the font of the output file by using the 'extra css configuration' item? Thanks in advance. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2011
Device: bq
|
Thanks, a bit stark, but it might be enough
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF to epub convertion grief; keeping indentation | Aia | Calibre | 2 | 10-31-2010 05:09 PM |
Doc to Epub convertion problems | johnbajer | Calibre | 5 | 06-04-2010 05:30 PM |
PRS-600 Default EPUB font? | jamadams | Sony Reader | 5 | 04-06-2010 11:07 PM |
Cover pictures after convertion from ePub to Mobi | paulpeer | Calibre | 8 | 03-23-2010 09:23 AM |
feed to lrf, how do I change font (or have default font) | lovemov | Calibre | 3 | 03-16-2009 10:57 PM |