09-05-2011, 09:18 PM | #1 |
TechnoGeek
Posts: 43
Karma: 3202
Join Date: Jun 2011
Location: Hamilton, New Zealand
Device: Likebook Mars, Boox Kepler Pro, InkBook Obsidian
|
Font in book view
I'm experimenting (ie learning) with converting a plain text file to an epub book. Because it is a text file there are no fonts specified in the document and Sigil seems by default to show the text in a sans-serif font when in the book view pane. I prefer a serif font when reading but havent found anywhere I can change to this. It's not a problem when the file is in my Kobo because I can specify the font in the reader - I just want to be able to change the default font in Sigil to make my proof reading easier. Is there anywhere I can do this? I haven't managed to find it if there is.
|
09-06-2011, 02:09 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You have to change that in the stylesheet. If you want to do it for the whole document, put it in a body specification.
|
09-06-2011, 08:09 AM | #3 |
Jr. - Junior Member
Posts: 586
Karma: 2000358
Join Date: Aug 2010
Location: Alabama
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
|
To expand a bit on the comment made by Toxaris and I can only vouch for this on Windows systems.
Apparently Sigil will use the Windows font files to display the text in "book view" if it is specified in the css. It is not necessary to have the font files present in the ebook itself. I insert the following line in the <body> definition: font-family: Times New Roman; (pick one) I remove it on the last pass since there are no font files present and it might cause problems for those few ereaders that support in line fonts. If you are not using Windows you can try it and see what happens - it can't hurt. Regards - John |
09-06-2011, 01:24 PM | #4 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It is not required to actually name a font. Just:
Code:
body { font-family: serif; } |
09-06-2011, 01:26 PM | #5 |
Bookmaker
Posts: 416
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
Will doing that with a non-embedded font trigger the dreaded QTWebKit bug?
|
09-06-2011, 03:05 PM | #6 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
No, WebKit's problems with italics and bold only extend to fonts embedded in the epub (and there are hopeful signs that it might finally be fixed with the release of Qt 4.8). You won't have this problem if you use a generic font-family or specify a system font name.
|
09-06-2011, 03:24 PM | #7 |
Jr. - Junior Member
Posts: 586
Karma: 2000358
Join Date: Aug 2010
Location: Alabama
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
|
|
09-06-2011, 04:48 PM | #8 | |
Bookmaker
Posts: 416
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
Quote:
|
|
09-07-2011, 02:29 AM | #9 |
TechnoGeek
Posts: 43
Karma: 3202
Join Date: Jun 2011
Location: Hamilton, New Zealand
Device: Likebook Mars, Boox Kepler Pro, InkBook Obsidian
|
Many thanks one and all. I'm off to learn a bit more about style sheets and definitions (and html in general) The file has been converted from raw text so Sigil hasn't created any styling - it's all up to me now... I had hoped that Sigil might have had a place where you could define what default font it would use for display (just like my e-reader does) but it doesn't seem like that is the case. Still, for version 0.4 (and free) it's pretty good and fairly intuative to use.
Regards James |
09-07-2011, 05:33 AM | #10 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Actually, why would Sigil do that? By default your reader has a serif and a non-serif font and sometimes more. An ePUB will refer to the default serif or non-serif font. If you want another font, you either have to include it in the ePUB or specify it on the reader. The latter is usually not possible.
The display in Sigil is not intended as a reading option. BTW, Sigil will not create any styling for you. That's up to you and actually a big strength of the program. |
09-07-2011, 07:48 AM | #11 | |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
09-07-2011, 08:37 AM | #12 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
This is the best route to go. calibre has very good and advanced detection for paragraphs and formatting. Combined with heuristic processing you can get about 85 - 90% formatted.
|
09-07-2011, 04:10 PM | #13 | |
TechnoGeek
Posts: 43
Karma: 3202
Join Date: Jun 2011
Location: Hamilton, New Zealand
Device: Likebook Mars, Boox Kepler Pro, InkBook Obsidian
|
purely for the convenience/comfort of the user while checking the book creation. Some of us find a serif font is easier to follow accross the page (there is a reason why books are usually printed with serif fonts!).
Quote:
I'm a comms tech by trade, don't know much about html - just have to learn something new. James |
|
09-10-2011, 12:55 PM | #14 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
The problem is of course that if you can set a DISPLAY font for Sigil, a lot of people will expect that font to be in the ePUB when they put it on there reader. Actually, I find a serif font easier to read than non-serif in a book. However, the default will depend on the reader application. That is the reason that I always set the font-family to serif. It is easy and does the job.
|
09-11-2011, 04:13 AM | #15 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
quotes differences book view & code view | cybmole | Sigil | 13 | 03-29-2011 01:53 AM |
lock book view & code view windows into synch | cybmole | Sigil | 5 | 01-19-2011 10:30 PM |
Font Size in Library View | Archon | Calibre | 2 | 12-13-2010 07:47 PM |
Is it possible to view the Format of a book in Library view? | highwaykind | Calibre | 6 | 01-23-2010 06:28 PM |
Changing font for code view mode | matthewyi | Sigil | 2 | 11-05-2009 02:20 PM |