![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
embed font is too narrow - need help
Hello
Right now I am working on an ebook in epub. I just borrowed the paperbook version from the local library. In this book, there are 2 handwritten letters. I want to make the epub as close to the paperbook as possible, so I embed 2 fonts (I found a good explanation on how to do it on threepress.org). To be exact: I found 2 free ttf fonts that looked like handwriting. It was recommended to convert them to otf, so I did that with a free website. I added them to my xhtml file and checked it with Firefox 4. It looked great. Then I converted the xhtml file with Calibre into epub. I opened it with the epub viewer of Calibre and everything was still fine. Then I copied the epub on my ebook reader (Bebook One, with ADE) And this is were it starts to look strange. I made a photo of my e-reader to show you what I mean: As you can see the normal text looks fine, like it is supposed to be. But the space between the handwritten lines is too small. Just look at the 3rd word of the 1st line "ja" and the 3rd word of the 2nd line "hoffe". They almost touch. On other words, they do really touch. This only happens on my e-reader, in Calibre it looks fine. Is this caused by the font? As I said, I use 2 different handwritten fonts, but both look similar. Or could this be caused when I converted it from ttf to otf? Should I use a different font? Or would it help if I set the line height to something like 1 em? Or is there no way to solve this problem? I hope someone can help me. Thanks in advance. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
You need to modify the leading in the paragraph. See https://wiki.mobileread.com/wiki/CSS#Leading and make the change in the CSS
Dale |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Or modify the font (if allowed) to increase the em size, without scaling the glyphs. Fontforge can do that. In this case, the font will look smaller in the page, because the line height remains constant (that is, if you don't change it).
You could include the handwritten letters as images, too. |
![]() |
![]() |
![]() |
#4 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
Thanks for all your answers.
Personally, I don't think this is a good idea. I got this ebook in pdf and in this one, the letters have been there as images. About 8 images per letter. They have been scanned badly, so they looked like crap (that was why I went to the library to get the paper version). I manually added the letters to the xhtml file that I got after using ocr on the pdf. With images, there is no reflow, and the zoom level always is the same. It would be like a pdf file, just labeled epub ... I haven't much time right now, so I haven't tested any of the other suggestions, but I will get back to you, once I tried. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
Images on EPUBs can be made easily reflowable. You just have to add a width % property or equivalent in your CSS. This will definitely save you time. |
|
![]() |
![]() |
![]() |
#7 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#8 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Using an image may, however, be the only sensible approach. Eg, attached is an image of a letter from my recent version of Dickens's "Bleak House". Given the strange "over-linings" it contains, I could think of no way to incorporate this into the book other than as an image.
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,914
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
To start with, you do not have to convert TTF to OTF. ADE supports both types of fonts for embedding. Second, just play around with line-height and you can then fix the spacing between the lines.
As for including images in the ePub to simulate the handwriting, I agree that it's a bad idea in ePub to do this when you can make it look nice with an embedded font that will re-size when you want it to. |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Actually, in real writing it can happen that letters overflow, especially the highs and lows. I kind of like it really.
|
![]() |
![]() |
![]() |
#11 | |||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
Quote:
Quote:
Quote:
![]() Just to add this: the letters in this book are written by young teenage guys. One of them has a correct spelling, the other one makes a few mistakes, like for example, he sometimes forgets a letter, or he accidentally wrote a word twice. So yes, overflowing letters can happen - and in this case it would really fit. But still, I will give it a try with line height. |
|||
![]() |
![]() |
![]() |
#12 | ||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#13 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
![]() Probably, if you insert an image with a sufficiently high definition, it could be easily used at lower definitions and could later reflow correctly (so as to be easily readable) between, say 72 dpi and 150 dpi. By "sufficiently high", I mean a value over 150 dpi. On the contrary, if you insert a low def image and try to do it the other way with a lossy compression like jpg, I agree that the end result would probably be quite bad. We do it for photos, why not for manuscripts? Last edited by roger64; 06-06-2011 at 03:28 AM. |
|
![]() |
![]() |
![]() |
#14 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
just to get back to you guys:
last night, I tried it with line height, and it worked, so thanks for that. However, you guys also mentioned images that an image will change size, if I use % property? I never thought about that. So far I always used property, based on px, so like 300px height would be half of my 600px screen. And I thought, I already knew alot about epub - you learn something new everyday ... |
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Have a look, it's not perfect but it will give you some more ideas. The text on the table is to be read at minimum size with ebook readers
Look at these images with a 6 inch screen ebook reader, an iPad and a desktop computer. You also can open the epub with Sigil to look the implementation of the % code. Last edited by roger64; 06-06-2011 at 03:48 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help Me Narrow the Selections | Ben2World | Which one should I buy? | 12 | 06-28-2010 03:11 AM |
Embed a font in a PDF without making it huge | Kosst Amojan | 4 | 11-21-2009 11:34 AM | |
how to embed unicode font | atu1303 | LRF | 8 | 08-21-2009 10:06 PM |
Seriously thoughtful OLED displays - narrow viewing angle? | HarryT | Lounge | 2 | 05-24-2009 10:14 AM |
Does Calibre embed "normal" font? | radius | Calibre | 8 | 08-30-2008 05:04 PM |