Quote:
Originally Posted by jackie_w
@theducks,
Is the letter-spacing value set in pixels? If so, I wonder if this is a similar problem to the one where text-indents don't work well in kepubs when set in absolute units? Have you tried setting it to a very small em-value?
FWIW, I never use letter-spacing myself. I always assume it's a crude attempt to simulate small-caps, so better to use font-variant or a small-caps font-family than letter-spacing - if the actual text content is suitably mixed case.
|
I've seen it used in the last couple of months in chapter headings as @theducks is. I thought it worked, but, I think I removed it as it looked ugly.
But, playing with it in one of the test books I have, I added the following:
Code:
<h4><b>Letter Spacing</b></h4>
<p>abcdefhijg - normal spacing.</p>
<p class="letterspacing1pt">abcdefhijg - 1pt spacing.</p>
<p class="letterspacing5pt">abcdefhijg - 5pt spacing.</p>
<p class="letterspacing1px">abcdefhijg - 1px spacing.</p>
<p class="letterspacing5px">abcdefhijg - 5px spacing.</p>
<p class="letterspacing1em">abcdefhijg - 1em spacing.</p>
<p class="letterspacing5em">abcdefhijg - 5em spacing.</p>
And in the stylesheet:
Code:
.letterspacing1pt {
letter-spacing: 1pt;
}
.letterspacing5pt {
letter-spacing: 5pt;
}
.letterspacing1px {
letter-spacing: 1px;
}
.letterspacing5px {
letter-spacing: 5px;
}
.letterspacing1em {
letter-spacing: 1em;
}
.letterspacing5em {
letter-spacing: 5em;
}
The in-word spacing seems to be OK, but, the space between the words appears to be the normal width of a space. Which makes it very hard to see where the word break is.
This was with the publisher font, and the size was just to make sure it all fit on one screen. And no patches.
And, yes, I do know that 5em is ridiculous, but, that was sort of the point.