05-07-2013, 03:17 PM | #61 | |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
|
|
05-07-2013, 03:22 PM | #62 | |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
|
|
Advert | |
|
05-07-2013, 07:21 PM | #63 |
A curiosus lector!
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
|
Thanks Agama,
Your suggestions are very helpful and I like the way you do shared it, without stiff statements like: "Do it!" I do not like it, "You are wrong". We are in a free world, is it not (so people can like and do what they want to)? |
05-07-2013, 11:39 PM | #64 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Now, back to the "Do's and Don'ts of EPUB Formatting": Do: Use a pleasing default line-height (~1-1.2em (MAYBE 1.3em)), or leave on defaults so user can choose whatever his heart desires. Don't: Use a line-height of OVER 9000!!!!! |
|
05-08-2013, 06:55 AM | #65 | ||
Addict
Posts: 254
Karma: 69786
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
|
Quote:
Quote:
|
||
Advert | |
|
05-08-2013, 09:33 AM | #66 | |
Connoisseur
Posts: 69
Karma: 536046
Join Date: Sep 2012
Device: iPad / NST / Kobo
|
Quote:
You might personally prefer it, that's fine, but typographically it's wrong. |
|
05-09-2013, 01:40 PM | #67 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2013
Device: Kindle 4NT
|
I believe that 1.2em (-ish) is certainly the default for many desktop renderers.
As a wider point, this does seem like something that would be best left up to the user agent as the original poster suggests. |
05-09-2013, 05:45 PM | #68 | |
Addict
Posts: 254
Karma: 69786
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
|
Quote:
Code:
Firefox line-height: normal: 20px 1em: 16px 1.2em: 19.2px 1.25em: 20px 100%: 16px 120%: 19.2px 125%: 20px Chrome line-height: normal: 20px 1em: 16px 1.2em: 19.1875px 1.25em: 20px 100%: 16px 120%: 19px 125%: 20px ADE line-height (measured with screen ruler, 10 lines/10): normal: 19px 1em: 16px 1.2em: 19.1px 1.25em: 20px 100%: 15.9px 120%: 19.2px 125%: 20px Edit: The font rendered was the default fonts, this could explain the different values in ADE. Firefox and Chrome both used Times New Roman. If I can find the time tomorrow I'll update my test epub to reflect this and see if the value changes. I could also embed a few different fonts for comparison of "normal" line height rendering, suggestions are welcome. Last edited by Man Eating Duck; 05-09-2013 at 06:06 PM. |
|
05-09-2013, 06:01 PM | #69 | |
Resident Curmudgeon
Posts: 75,917
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
05-09-2013, 07:11 PM | #70 |
Resident Curmudgeon
Posts: 75,917
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
From what I've seen, the line height of ADE is maybe 1.15em. It's larger then 1.1em and smaller then 1.2em.
|
05-11-2013, 01:26 AM | #71 | |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
https://github.com/h5bp/html5-boilerplate/issues/825 The default for IE is about 1.125, and pretty much all other browsers (Firefox/Chrome/Safari/Webkit) use 1.1875. But most of the time we just say 1.2, because that's close enough for government work. |
|
05-16-2013, 10:47 AM | #72 |
Enthusiast
Posts: 36
Karma: 8164
Join Date: Jul 2012
Device: Kindle Keyboard
|
Wow, there is an enormous amount of misinformation about line-height on this thread. Let's clear a few things up.
1. Fonts DO NOT contain any information about line-height. Font files describe how to draw glyphs in relation to the em square. If you are seeing line-height change based on font selection, you are seeing the result of a (very broken) user agent. 2. Line-height will ALWAYS be rendered in a whole number of device pixels. This is a fairly obvious physical constraint. 3. The equation of 1em = 16px is just a convention. It's a long story and not really relevant. None of this stuff really matters as long as, if you are going to specify line-height, you do it in ems. Just realize that the value you specify will get rounded to the nearest number of device pixels, which isn't the same thing as the CSS px measurement. |
05-16-2013, 11:53 AM | #73 | |
Addict
Posts: 254
Karma: 69786
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
|
Quote:
Thanks for chiming in, appreciated |
|
05-17-2013, 09:30 PM | #74 |
Resident Curmudgeon
Posts: 75,917
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It's nothing to do with the user agent. It's not actually line height information in the font, but the metrics. I can change the metrics and change the amount of space between lines. I've done this for ADE & Kindle (KF8) and it's worked. So while technically correct that there is no line height information in a font, there are metrics that say how to render the space between lines and that can be changed.
|
05-19-2013, 06:50 PM | #75 | |
Enthusiast
Posts: 36
Karma: 8164
Join Date: Jul 2012
Device: Kindle Keyboard
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error: "can only concatenate list (not "unicode") to list" | bmuesse | Library Management | 2 | 01-11-2013 03:50 PM |
epub "padding left" to mobi "block quote" conversion issue | 1611mac | Conversion | 3 | 01-11-2012 02:10 PM |
Convertion error txt to epub "IndexError: list index out of range" | economix | Conversion | 6 | 12-25-2011 06:14 AM |
How to remove "Fully read" books from "Last Open" list? | pjeanetta | PocketBook | 4 | 12-08-2010 10:30 AM |
Suggestion: Don't set "color" tag in .epub css | McAlsop | Calibre | 16 | 06-17-2010 09:13 AM |