Attached are a couple more shots, 1/9 3:40 pm, llasram version, with the largest and smallest typesize selected in ADE.
The proportionality seems consistent with the positioning of the drop cap to the rest of the paragraph. So altering the code to lower the drop cap should continue to provide consistent viewing regardless of size.
The code will have to be tweaked when a different typeface is selected. Or a different porportion of initial cap to regular type size is needed.
Have I pulled the right code out here?
css:
p {
text-indent: 1em;
margin: 0;
}
p.initial {
text-indent: -0.5em;
}
span.first {
font-variant: small-caps;
}
span.drop {
font-size: 400%;
font-weight: bold;
float: left;
margin: -0.15em 0.125em 0 0;
text-indent: 0em;
line-height: 1em;
height: 1em;
}
.afterA {
text-indent: -1em;
}
.afterL {
text-indent: -1.5em;
}
xhtml for chapter 1:
<p class="initial"><span class="first"><span class="drop">I</span>n</span> the
ancient city of London, on a certain autumn day in the second quarter of the
sixteenth century, a boy was born to a poor family of the name of Canty, who
did not want him. ...</p>
xhtml for chapter 13:
<p class="afterA"><span class="first"><span class="drop">A</span>
heavy</span> drowsiness presently fell upon the two comrades. The King
said—</p>
(Bad Coloring Job Mine. All Mine.)
So, if I've read this right, you've got more than 1 after-the-drop-cap-code, depending on, of course, the width of the letter (I's take up less horizontal space than W's. Err, A's).
Refresh my memory - even without scripting, doesn't css support some kind of variables that could detect the width of the letter for us, so we wouldn't have to hand-tweak the after-spacing on every drop cap? (ever the lazy one, I am).
-bjc
|