03-29-2008, 07:16 PM | #1 |
Linux User
Posts: 323
Karma: 13682
Join Date: Aug 2007
Location: Germany
Device: Kindle 3
|
How to change the line spacing of a font
The line spacing on the Cybook is determined by the currently used font's metrics. The following how-to was made by trial-and-error, as I don't have much knowledge about font metrics.
In the examples I'm going to show, I used the free font Bitstream Vera Sans (Vera.ttf). First download and install FontForge. Start FontForge and open the font you want to edit. You should see something that looks like this: Click on "Element" then "Font Info..." or press Ctrl+Shift+F. Now select "OS/2" on the left side of the Font Information and then the "Metrics" tab on the right side. Set all numbers to zero in the metrics fields, but don't uncheck the "Is Offset" boxes. Now comes the tricky part: Depending on the font you'll need to experiment a little to get the line spacing right. "HHead Ascent Offset" should be a negative number in most cases around -100 to -200 (the lower the value the smaller the line spacing). "HHead Descent Offset" should be a positive number in most cases around 100 to 200 (the higher the value the smaller the line spacing). You can make an educated guess by looking at the character size, Vera Sans for example is very large and needs some line spacing. I think HHead Ascent Offset -100 and HHead Descent Offset 100 look nice: Most Serif fonts have smaller characters and would probably need something like -200 and 200. Now click OK and select "File" -> "Generate Fonts...". The font type should be TrueType or OpenType (CFF), both formats will work fine on the Cybook. Click "Save" and ignore any error messages or uncheck "Validate Before Saving" before saving. Copy the saved font to the Cybook and check if the line spacing looks right now. If not, try other values for "HHead Ascent Offset" and/or "HHead Descent Offset". When the line spacing is looking good, remember the values for "HHead Ascent Offset" and "HHead Descent Offset" and repeat the procedure described above with the Italic, Bold and Bold-Italic version of the font. |
03-29-2008, 09:13 PM | #2 |
Member
Posts: 23
Karma: 10
Join Date: Feb 2008
Location: Belgium
Device: cybook gen3
|
Do you have pictures with the result? Or either the adapted font ready for download, so we can see it/test it without having to install this extra software
|
03-30-2008, 06:30 AM | #3 |
Linux User
Posts: 323
Karma: 13682
Join Date: Aug 2007
Location: Germany
Device: Kindle 3
|
My camera's batteries are charging right now, so I can't offer screenshots at the moment, but I attached the adapted font. You can compare it to the original font, which I linked to above.
|
03-30-2008, 03:43 PM | #4 |
Guru
Posts: 860
Karma: 4380
Join Date: Feb 2008
Location: Almada, Portugal
Device: Cybook Gen3, Sony PRS 505, Kindle DXG and Samsung Galaxy Note
|
IceHand
Outstanding work and tutorial. I have just downloaded the font you have put here and it does give me 3 more lines then Verdana in the same eBook and same font size (24 lines with Verdana against 27 with your font!) Note: the font size being the 3th in size from the 12 we have available in the Cybook. One more info - this font shows my country diacritics (ã, ç, á, etc…) without a problem. Best regards, |
03-30-2008, 04:22 PM | #5 |
Fanatic
Posts: 534
Karma: 469999
Join Date: Feb 2008
Location: Scotland
Device: Sony PRS-650 (PRS+ alpha - thanks Kartu!)
|
Thankyou!
I've just switched over to that font and it's clear and readable, and the line spacing is miles better than Verdana. So much so I'm now thinking Verdana is crap and I'm wondering how Bookeen allowed the Cybook to ship without a good font |
03-30-2008, 07:16 PM | #6 | |
Wizard
Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
|
Quote:
As I prefer Book Antiqua, Berling Antiqua and Georgia, I guess I'll just have to suffer quietly. Derek |
|
03-31-2008, 07:32 AM | #7 |
Linux User
Posts: 323
Karma: 13682
Join Date: Aug 2007
Location: Germany
Device: Kindle 3
|
Derek, you've got mail.
Here are two screenshots showing Book Antiqua before and after I changed the line spacing. I used the values -400 and 400. EDIT: Made better screenshots, still Book Antiqua before and after though. Last edited by IceHand; 03-31-2008 at 01:55 PM. |
03-31-2008, 09:35 AM | #8 |
Feedbooks.com Co-Founder
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
|
03-31-2008, 10:12 AM | #9 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I have to agree. Looks quite a bit better. Also makes it more readable. Plus I like that you've gone from 17 lines to 21 lines. Less pages per book and less page turns equals more battery life.
|
03-31-2008, 11:21 AM | #10 | |
Wizard
Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
|
Quote:
Oh well. Maybe someone can start up a line of freeware fonts optimized for the Cybook and other ereaders. Derek |
|
03-31-2008, 11:38 AM | #11 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Is there a way to produce larger fonts in Cybook's Reader via FontForge? The current maximum size is about 24pt, which is not large enough for everyone - see Does the new CyBook support ultra-large fonts (>72 points)?.
Like line spacing, this would be better handled by the reader software internally. And adding larger font sizes to the reader is probably easier for Bookeen to do than adding a user-specified line spacing. Even so, I think a double size (say) font would be an interesting demonstration. |
03-31-2008, 11:42 AM | #12 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
|
03-31-2008, 11:44 AM | #13 | |
Wizard
Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
|
Quote:
|
|
03-31-2008, 11:50 AM | #14 |
Chocolate Grasshopper ...
Posts: 27,600
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
An absolutely stupid ,
ridiculous , ' bad ' question , but can one " pinch " fonts from MS Windows , and use them ???? |
03-31-2008, 12:00 PM | #15 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
TrueType fonts can (always?) render whatever size you want. The trick here is for the Cybook to select 24pt but actually get back 48pt. There are lots of reasons why this might not work, but perhaps there is a way to make it happen.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Line spacing | Ivo | Kobo Reader | 3 | 06-30-2010 12:54 PM |
Reducing line spacing | rjcroy | Kobo Reader | 3 | 06-11-2010 09:23 PM |
Problem with epub to lrf with changing font size and line spacing | kleinbiker | Calibre | 4 | 12-17-2009 08:55 AM |
Change line spacing | zartemis | Amazon Kindle | 1 | 02-26-2009 03:08 PM |
Line Spacing and Margins | la3541 | Sony Reader | 0 | 06-02-2008 06:35 PM |