![]() |
Using different fonts in Sigil
Hi all,
Newbie question coming up. I need to have two different fonts in a book I've written and wasn't looking forward to uploading fonts and dealing with stylesheets as I have no experience with these. But when I copied and pasted by word document with both fonts into Sigil, created chapters and a TOC and then converted the epub into a mobi everything comes out fine when I read the book in my Kindle reader. So why do I need to upload fonts or create a style sheet? Am I missing something? Thanks in advance, Jamie |
Quote:
The device may support Your chosen font The device falls back to a system font (an you did not notice the difference) Stylesheets allow CONTROL in a common (usually single) place instead of willy-nilly through out the document. This allow a Single change to revise the look and feel of your work. What happens if you decided the font, foo.ttf, you chose for Chapter Headings looked really bad on a small display? Without a stylesheet, you would need to locate and change each and every use to the new choice. With a stylesheet, you simply make the change once. Do take time and learn basic CSS. The stylesheet need not be complex. K.I.S.S. will work well here :thumbsup: |
Find a book you like in the MR library. Three Men in a Boat is a good choice and look at any special formatting you like. Switch to code view and see what they used to get it. Then switch over to the stylesheet view for the code you just saw. Then go to w3schools.com for a further explanation if you need one.
For many books you don't need extra fonts at all. The plainest of books won't need much in the way of a stylesheet either. But as you get more familiar with epubs you will likely want to be able to make chapter titles nicer looking etc. |
Quote:
Just about every reader device has a default serif font and a sans-serif one. Will these do as your two fonts? |
Quote:
|
Quote:
Although from how the Smashwords style guide reads, it makes me wonder if people even use Word and OO/LO stylesheets very often. Too much direct formatting, perhaps? Quote:
|
Quote:
|
And moreover, what's wrong with the font the user might have selected as preferred font ;)
|
Hi
A compromise solution would be to offer a reversible choice of fonts. I mean to propose some font which seems to go well with your formatting, but that can be easily overriden by user's choice. The problem is that I can only test this kind of solution with Kobo Glo. |
Quote:
Jamie: Likely, it worked because, through sheer happenstance, the two "fonts" you called via Word, called in the in-line html, are also on the actual Kindle devices. For example: Times New Roman and Trebuchet, or something along those lines. If you had called, say, a Cyrillic font you'd put on your computer, or, say, Linux Libertine Ligatures--well, that would be a different story. Then, on your Kindle, you would see little blank boxes where the letters should go. In fact, I have a screenshot of a Kindle2 screen I took, to prove to someone insisting that I was a moron ebook-maker, because I couldn't magically make a book in Russian for Amazon ("...because there are already books in Russian on Amazon! So you must not know what you are doing!" I was not able to explain to to him that the books worked on K8 devices, but not K7. Just didn't want to hear me.). (If you want to see what an image of an unsuccessful called font looks like on a Kindle, just say so. Happy to show you.) If the font you request isn't available, the device will simply choose one from amongst those available, or, worst case, display little empty boxes. A lot depends on the encoding, etc. I hope that makes sense to you. Hitch |
You can also embed fonts (be sure to use open source fonts and not commercial ones!) in your epub's in combination with an appropriate style sheet to force your e-reader to use that fonts only. It makes your epub bigger in size though, and your e-reader must be able to handle those font formats (.otf, .ttf) but when it really complies to the OPS 2.x standard, it will work.
|
Thanks for all the great responses. Yup, I was using Helvitica and New Courier in my word document. The first for the main text of my story and the New Courier to represent a manuscript that one of my characters reads within the story (if that makes sense).
I do want to get familiar with CSS and stylesheets but there's so much else to do write, design cover, proof,promote etc I'm going to take a short cut this time if I can! Having said that thank you for the advice of looking at how other books use CSS. I should have thought of that. Also Quote:
So what I'm seeing at the moment, both on my Kindle and Ipad, is the main text (which was Helvitica) now showing up as whichever user font I choose in the device and the New Courier showing as itself and not changeable...which is exactly what I want. Can anyone forsee a reason why I might come unstuck using my epub as it is without further addition? Thanks again, great stuff. Jamie |
Our own wiki can serve as a beginners guide and reference guide to CSS and if you wish to improve then it is easy to do.
Dale |
Always worthwhile to specify a "fallback" font in case the reader doesn't have the one you wanted :
Code:
p {BobC |
Thanks guys, great stuff
|
Quote:
p.block { font-family: courier, monospace; text-indent: 1em; text-align:left; margin:0em 0em 0em 1em; } My full style sheet is here: http://notjohnkdp.blogspot.com/searc...&max-results=7 |
| All times are GMT -4. The time now is 06:55 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.