|
|
#1 |
|
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 309
Karma: 1082
Join Date: Aug 2007
Location: Germany
Device: Kindle 3
|
How to change the line spacing of a font
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. |
|
|
|
|
|
#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
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 309
Karma: 1082
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.
|
|
|
|
|
|
#4 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 848
Karma: 1200
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, |
|
|
|
|
|
#5 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 511
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
|
|
|
|
|
|
#6 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,000
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 |
|
|
|
|
|
|
#7 |
|
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 309
Karma: 1082
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. |
|
|
|
|
|
#8 | |
|
Feedbooks.com Co-Founder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,263
Karma: 6657
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
Quote:
It looks MUCH better with this custom font.
__________________
|
|
|
|
|
|
|
#9 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
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.
__________________
|
|
|
|
|
|
#10 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,000
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 |
|
|
|
|
|
|
#11 |
|
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
|
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. |
|
|
|
|
|
#12 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,507
Karma: 2150615
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus S, iPad 2, Notion Ink Adam Qi, Kindle WiFi
|
I thought it might be harder to read. With the modified font the word spacing can visually be greater than the line spacing and that can lead to mistake in reading. And it looks strange.
__________________
DRM is EVIL! /Tommy Persson |
|
|
|
|
|
#13 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,000
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:
|
|
|
|
|
|
|
#14 |
|
Chocolate Grasshopper ...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26,684
Karma: 16550486
Join Date: Mar 2008
Location: Scotland
Device: 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 ????
|
|
|
|
|
|
#15 |
|
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
|
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.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |