10-15-2017, 11:51 PM | #16 | |||
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
And so in Kindle you have to have "Publisher Font" to see them. And so the body font becomes sans unless I style it otherwise. Blame the author who liked to play with typography. (That's why I was doing this book, as an exercise to see if I could make the effects work in ebook as they did on paper, without resorting to images of text.) Quote:
I have 21 spans in the book, most of them to make a standing cap. Quote:
Last edited by AlanHK; 10-15-2017 at 11:53 PM. |
|||
10-15-2017, 11:52 PM | #17 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Well, the "shoulds" aside, what he's describing echoes our experience. Once a font--any font, even one used once for a fleuron--is embedded, the body font will always default to Sans-serif, unless overridden by other CSS establishing a specific body font or setting it to serif. Amazon's well aware of this, or, at least, I've discussed it with them on no less than 3 occasions over the last 3-4 years. Hitch |
|
10-15-2017, 11:57 PM | #18 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
.....
|
10-16-2017, 12:00 AM | #19 | ||||
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Quote:
Quote:
I'm not sure what's causing your issue, but the spanned font should be working. Try making the book with only a single chapter--for speed in troubleshooting--and see if the spanned font text suddenly shows up in the right font. I've seen oddities like that happen, too, where I had to bracket navigate a problem, removing chapters, etc. to get to the coding that was causing the issue. If you don't set a body font, does the spanned font work? I don't mean, selecting it on the device--I mean, if you completely remove the font setting on the body CSS, does it work then? Hitch |
||||
10-16-2017, 05:58 AM | #20 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
So if a font is embedded and the following code is used, does this mean there is no need for publisher font?
Code:
<p><span class="somefont">This is the paragraph I want to show the embedded font.</span></p> |
10-16-2017, 09:38 AM | #21 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
OK, I've tested an embedded font called via a <span> and the only way for it to show up is via publisher font. Any of the other fonts overrides this. This is using firmware 5.8.11 on a PW3.
Last edited by JSWolf; 10-16-2017 at 09:50 AM. |
10-16-2017, 12:15 PM | #22 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Well, I hope that's wrong. I mean, as far as I know, that's not our experience. So, you are testing this on a PW3? That's not a published book, right? That's a book you've made, and then sideloaded? (n.b.: I ask this because, as scary as it is, sideloading books MAY NOT display properly. Nope, I'm not making that up.) I'll talk to my guys and get back. Can't promise it will be today. Hitch |
|
10-16-2017, 12:16 PM | #23 |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
10-17-2017, 03:16 PM | #24 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The eBook is a one that's ePub 2. I edited it and then use Kindlegen to convert. I then used Kindleunpack to split the KF8/Mobi and used Calibre to side load the KF8. This is using a PW3 with firmware 5.8.11.
Here is the full CSS. Code:
@font-face { font-family: "EurostileLTStd"; src: url(../fonts/EurostileLTStd-Oblique.otf); font-style: italic; font-weight: normal; } @font-face { font-family: "EurostileLTStd"; src: url(../fonts/EurostileLTStd.otf); font-style: normal; font-weight: normal; } body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; } p { margin-top: 0; margin-bottom: 0; text-indent: 1.2em; } .copy { font-size: 0.9em; margin-top: 0; margin-bottom: 0; text-indent: 0; } .copya { font-size: small; margin-top: 0.8em; margin-bottom: 0.2em; text-indent: 0; } .copyb { font-size: small; margin-top: 0; margin-bottom: 0.8em; text-indent: 0; } .ded { margin-top: 4em; margin-bottom: 0; margin-left: 1.8em; margin-right: 1.8em; text-align: center; text-indent: 0; } .epi1 { margin-top: 4em; margin-bottom: 1em; margin-left: 1.8em; margin-right: 1.8em; text-indent: 0; } .epi2 { margin-top: 0; margin-bottom: 0; margin-left: 1.8em; margin-right: 1.8em; text-align: right; text-indent: 0; } .f1 { font-family: "EurostileLTStd"; } .h2a { font-family: "EurostileLTStd"; font-size: 1.5em; font-weight: normal; margin-top: 0.8em; margin-bottom: 0.8em; page-break-after: avoid; text-align: center; text-indent: 0; } .h2c { font-family: "EurostileLTStd"; font-size: 1.1em; font-weight: normal; margin-top: 0.8em; margin-bottom: 0.8em; page-break-after: avoid; text-align: center; text-indent: 0; } .h2chap { font-family: "EurostileLTStd"; font-size: 1.6em; font-weight: normal; color: #777; margin-top: 4em; margin-bottom: 1.5em; page-break-after: avoid; text-align: center; text-indent: 0; } .h2sub { font-family: "EurostileLTStd"; font-size: 2em; font-weight: normal; margin-top: 0; margin-bottom: 0; page-break-after: avoid; text-align: center; text-indent: 0; } .imagefp { margin: 0; height: 100%; text-align: center; text-indent: 0; } .ipadfp { margin: 0; height: 100%; text-align: center; text-indent: 0; } .noindent { margin-top: 0; margin-bottom: 0; text-indent: 0; } .noindentq { margin-top: 1.8em; margin-bottom: 0; text-indent: 0; } .secbreak { margin-top: 1em; margin-bottom: 1em; text-align: center; text-indent: 0; } .stickup { font-family: "EurostileLTStd"; font-size: 2em; line-height: 0; } span.smallcaps { font-size: 0.75em; } span.txit { font-style: italic; } Here is the code from the book from the top of the file to the end of the paragraph that has the span. Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Original Sin</title> <link href="../styles/9781501133244.css" rel="stylesheet" type="text/css"/> </head> <body> <h2 class="h2c">Gamma Quadrant, 2386</h2> <p class="noindent"><span class="stickup">T</span>he <i>Galaxy</i>-class starship jolted hard, as though it had slammed into something while soaring through the Gamma Quadrant. A tremendous roar filled the <i>Robinson</i> bridge as the impact hurled Captain Benjamin Sisko from the command chair. The deck canted beneath him and he flew over the operations console. Pain flared in his knee as it struck the back of Commander Gwendolyn Plante’s head. He landed in front of the main viewscreen, trying to cushion his fall with his outstretched hands. Agony sliced through Sisko’s right wrist as it gave way. He heard the snap of a bone not through his ears, but inside his body. Instantly nauseated, Sisko ignored both the feeling and his injury.</p> <p>“Status report,” he called out. <span class="f1">The captain had to raise his voice to be heard above the shrill quaver of the automated shipwide alert that blared on and off in time with visual signals flashing red.</span> The ruddy tint of emergency lighting suffused the bridge.</p> |
10-17-2017, 04:33 PM | #25 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hmmm...I wonder if it's possible that the Zon has once again updated the KF8 format, for the PPW family of devices? My initial glance at this says to me that it ought to work. But you're saying that it doesn't, and I have no reason to disbelieve you. I'll dig into it. (Better yet, I'll ask my guys to dig into it.) Hitch |
|
10-17-2017, 04:52 PM | #26 | |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
10-17-2017, 05:14 PM | #27 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Just in case it was something caused by splitting with Kindlegen, I tried the eBook unsplit and it still reacted the same with the embedded font.
|
10-17-2017, 05:26 PM | #28 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've tested this with a Kindle Touch and same thing with both the KF8 and dual-format. If you want to display an embedded font you have to use Publisher font. There's no way around it. And yes, you do get sans-serif if the text has no font defined.
|
10-17-2017, 05:32 PM | #29 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
The guys will take a look, and when they update me, I'll update the thread. Hitch |
|
10-18-2017, 11:40 AM | #30 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
I created a test EPUB with an embedded font used for h1 elements. No font was specified for the body or regular paragraphs.
Master MOBI (MOBI+KF8) and AZK were created using Kindle Previewer 2.94. KFX was created using Kindle Previewer 3.15 and the KFX Output calibre plugin. The results were as follows: MOBI+KF8 (Kindle Previewer 3.15 - Tablet device, Kindle for PC 1.20.1, Kindle for Android 7.18.0.1), AZK (Kindle for iOS 5.15.2), KFX (Kindle Previewer 3.15, Paperwhite II 5.8.11): Main body text shows whatever font the user selects and headings always show the embedded font. MOBI+KF8 (Kindle Previewer 2.94 - Voyage device, Paperwhite II 5.8.11): Main body text and headings show whatever font the user selects. Headings show the embedded font only when "Publisher font" is selected. So the e-ink Kindles rendering KF8 are the exception and do not behave as I would expect. Last edited by jhowell; 10-18-2017 at 11:54 AM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura If epubs open at all, fonts unchangeable | kobospice | Kobo Reader | 32 | 06-10-2016 02:19 AM |
How to converse bold font into normal font output in calibre? | Percivale | Kobo Reader | 3 | 11-09-2015 09:21 PM |
Mini advanced font settings ignored in one book - embedded font? | lordofazeroth | Kobo Reader | 4 | 09-20-2013 02:15 PM |
Determine font and font size on incoming epub? | peaceridge | Calibre | 4 | 01-30-2012 03:35 PM |
Classic Unchangeable font in some books? | boydcarts | Barnes & Noble NOOK | 4 | 08-23-2010 07:09 PM |