EDIT: There's a more elegant solution. See
post #9.
Quote:
Originally Posted by ricroma
1) in the epub stylesheet I'm using a generic "serif" font:
|
There's no need to define a serif font for body text. The Kindle will automatically assign a serif font to it.
Quote:
Originally Posted by JSWolf
The way to do it is to use uppercase and reduce the font size to .7em (or so) and then you'll have simulated smallcaps. It won't look quite right because it's simulated. The only real way to do it is to embed a font and the smallcaps version of the same font. That will work in KF8, but not Mobi.
|
That's incorrect. Unlike ADE based devices, KF8 enabled Kindle devices and apps support small caps without embedded fonts. All you have to do is apply a
font-variant: small-caps style.
In this special case the best solution would be to format all small caps text as all upper case text and use
text-transform: lowercase; for the KF8 part and
font-size: 0.6em; for the non-KF8 part via media queries.
Code:
span.sc { font-variant: small-caps; font-weight: bold; }
@media not amzn-mobi { span.sc2 {text-transform: lowercase; } }
@media amzn-mobi { span.sc2 {font-size: 0.6em; } }
<p><span class="sc">M<span class="sc2">ORALISTS</span></span> and philosophers have adjudged those who throw temptation in the way of the erring, equally guilty with those who are thereby led into evil.</p>
(Since
text-transform and
font-variant aren't supported in Mobi7, they'll be ignored by KindleGen in the non-KF8 part.)