Quote:
Originally Posted by RbnJrg
The perfect drop cap only is for KFX, for .kf8 you need more than that simple code to have a decent drop cap. You need to employ the same font for body text and drop cap and the line height of the drop cap has to be the same as the paragraphs. Besides, it's neccesary to adjust drop cap margins. Something like this:
Code:
body {
font-size: 1em; /* to have a consistent font-size for all ebook */
}
p {
margin: 0;
text-align: justify;
text-indent: 1.2em;
line-height: 1.2em;
font-size: 100%; /* now that 100% is 100% of font-size of body */
}
p.drop {
text-indent: 0;
}
.dropCap {
float: left;
line-height: 1.2em;
font-size: 360%; /* Or the size you wish */
font-weight: bold;
margin: -0.02em 5px -0.03em 0; /* Here you could need change these values */
}
The best output under .kf8 is by employing a .svg image, so what floats as drop cap is not a letter but an image. Best (perfect) output for drop caps (no matter the font-size) is achieved under KFX and under epub3 with ereaders that suppor "initial-letter" (or "-webkit-initial-letter") property. In my tests with epub3 all Sigil's plugins, Calibre Viewer, Thorium, Koodo Reader, Foliate, Cantook, Reasily, Lithium, PocketBook, Infinity Reader and Kobo for Android support that property.
|
The line-height of 1.2em might not work on a Kindle in KFX. Also, you don't want to force a line height as one of the reasons for using ChareInk6SP is to have a smaller line height and if your line-height works, then it spoils the line height of the font. So can you do a dropcap in KFX without the line-height and not knowing what the default line-height will be?