|
|
#1 |
|
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 228
Karma: 556000
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Drop cap bug on Paperwhite
My drop caps work fine in other readers (Nook and multiple other ADE-based readers, iBooks, Kindle Fire, Kindle Fire HD, etc.), but Paperwhite reliably renders them way too low and renders the box too tall (so that too many lines are indented). They should look look like this: ![]() But on Paperwhite, even with Publisher Font enabled, they look like this: ![]() I have drop caps defined like this: Code:
.dropcap
{
letter-spacing:0;
text-transform:uppercase;
font-family: "Telegraph Hill", Didot, "GFS Didot",
"New Century Schoolbook", "Century Schoolbook",
"Bookman Old Style", Bookman, serif;
font-size:4.8em;
display: inline-block;
position: static;
float:left;
border: 0;
/* Margins are set on a per-character basis. */
/* margin: 0; */
padding: 0;
line-height: 1.2;
height: .75em;
}
Code:
.chapterdropcap
{
letter-spacing:0;
text-transform:uppercase;
font-family: "Telegraph Hill", Didot, "GFS Didot",
"New Century Schoolbook", "Century Schoolbook",
"Bookman Old Style", Bookman, Serif;
font-size:4.8em;
display: block;
float: left;
line-height: 120%;
height: 0.75em;
}
Code:
<p class="kindlefirst"><span class="dropcap chapterdropcap" style="margin: -0.235714285714286em 0em 0 -0.00428571428571429em;">T</span><!--font size="2"--><span class="smallcap">he</span>*musty air stung their noses as they walked through the abandoned ship, its uninviting halls dark and cold, but there was air. There was definitely air, and that alone was an improvement.<!--/font--></p> Does anybody see anything obviously wrong here, or is Paperwhite just massively broken? You can download a test sample here: kindle_dropcap_sample.mobi |
|
|
|
|
|
#2 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,141
Karma: 2474345
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
"text-transform" and "display: inline-block" are not supported by the ePub spec, but maybe they are by the Kindle, and they probably are unrelated to your problem ("position" is also not in the list of supported CSS properties, but it's mentioned in several places in the spec).
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,081
Karma: 2677223
Join Date: Dec 2010
Device: Kindle 3
|
Unfortunately, I cannot help you with your problem, but I wanted to let you know that your .mobi file looked different on my old K3 with KF8 support.
Whatever solution you come up with, you may want to also test it with other eInk Kindles, because it seems that the PW has a different rendering engine. |
|
|
|
|
|
#4 | |
|
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 228
Karma: 556000
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
One of the two drop cap styles uses block and the other uses inline-block, so that's also a non-issue. The position property most certainly is in the EPUB spec. It says "Use of the CSS position property values to achieve absolute positioning (i.e. absolute and fixed) is strongly discouraged." Note that position: static is the default, so this should always be a no-op. I inserted it just in case there was something screwy going on.
|
|
|
|
|
|
|
#5 | |
|
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 228
Karma: 556000
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
That said, I would be curious how it looks with Publisher Fonts enabled. Last edited by dgatwood; 01-15-2013 at 03:38 PM. |
|
|
|
|
|
|
#6 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,830
Karma: 23232374
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
Like chasin' your own tail, man. Get it in the ball-park, then shake it off and move on. Too many devices with too many different renderers to make 'em all sing the same song on key at the same time.
Why do you have so many fallback fonts in your font-family declarations if you're embedding all the fonts anyway? Your sample mobi looks the same on the Kindle Fire as your screen-shot from the Paperwhite, BTW.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” Last edited by DiapDealer; 01-15-2013 at 04:32 PM. |
|
|
|
|
|
#7 | |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,141
Karma: 2474345
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Paperwhite Search Bug | Robmonster | Amazon Kindle | 9 | 12-18-2012 07:06 AM |
| drop caps in paperwhite? | morrow | Mobi | 7 | 12-11-2012 12:10 PM |
| Please, test if your Paperwhite has this bug | Antoinekamel | Amazon Kindle | 6 | 10-20-2012 07:21 PM |
| To cap or not to cap | WT Sharpe | Calibre | 2 | 04-07-2012 03:45 PM |
| Using CSS in Word to make a Drop Cap work in an Epub | brewt | ePub | 3 | 01-31-2009 06:00 PM |