![]() |
#1 |
Gentleman and scholar
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,236
Karma: 110205705
Join Date: Jun 2015
Location: Space City, Texas
Device: Clara HD; Nook ST w/Glowlight, (2015) Glowlight Plus, Paperwhite 3
|
Nickel won't display secondary font in body text
I'm reading a book (The Bright Lands by John Fram) that has a lot of text messages and emails that are supposed to display as sans serif, but Kobo seems to be ignoring that.
I've attached a picture of Nickle displaying the text. Here is the code from the book: Code:
<p class="body-text"><span class="ef"><span class="koboSpan" id="kobo.24.1">actually it’s not ok.</span></span></p> <p class="body-text"><span class="koboSpan" id="kobo.25.1">Joel tried to call. </span><span class="koboSpan" id="kobo.25.2">It went to voice mail after two rings.</span></p> <p class="body-text"><span class="ef"><span class="koboSpan" id="kobo.26.1">can’t talk rn</span></span><span class="koboSpan" id="kobo.27.1">, his brother wrote. </span><span class="ef"><span class="koboSpan" id="kobo.28.1">sorry.</span></span></p> <p class="body-text"><span class="ef"><span class="koboSpan" id="kobo.29.1">Lil D</span></span><span class="koboSpan" id="kobo.30.1">, Joel wrote — an old pet name that felt rusty from disuse — </span><span class="ef"><span class="koboSpan" id="kobo.31.1">What’s wrong?</span></span></p> <p class="body-text"><span class="ef"><span class="koboSpan" id="kobo.32.1">dumb dreams. </span><span class="koboSpan" id="kobo.32.2">bad dreams. </span><span class="koboSpan" id="kobo.32.3">i’m stupid.</span></span></p> Code:
.ef { font-family: "Verdana", "Helvetica", "Arial", "Ubuntu", sans-serif; font-style: normal; font-weight: normal } Other changes to the stylesheet do work. The body text was set to left and I changed it to justify. That worked. Also, in Sigil, the different font does display. So it's just Nickle. I'm travelling (I'm posting this from SeaTac airport). So I can edit the book in Sigil until my flight boards. But I can't do A/B testing with an ePub vs. kepub or see how calibre displays it right now. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,569
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Dumb question but is the font setting on the device "Publisher Default"? If not I believe all fonts in the book will be overridden.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,349
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
Are you reading EPUB or KEPUB? Unless you select the publisher's font on KEPUB, your chosen font gets used for everything, and all font changes in the CSS get ignored.
|
![]() |
![]() |
![]() |
#4 |
Gentleman and scholar
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,236
Karma: 110205705
Join Date: Jun 2015
Location: Space City, Texas
Device: Clara HD; Nook ST w/Glowlight, (2015) Glowlight Plus, Paperwhite 3
|
Nope. And changing that fixed it. I don't like that setting for kepub. I would prefer changing the font to just change the body text, But calls for special cases should be respected.
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,349
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
You can adjust the behaviour with the "Un-Force user font-family in KePubs" patch, if you so desire.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39,157
Karma: 153098470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I took a quick look at your book but did not see where you used an @fontface to link the font in the fonts directory to your ebook. I haven't tried that in a while but did remember having to do this a few years back.
I tried this and epub had not issue while kepub did require publisher default to show the alternate font. I've attached the epub with the @fontface bits and a couple of screenshots (1st is the epub, 2nd is the kepub). |
![]() |
![]() |
![]() |
#7 | |
Gentleman and scholar
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,236
Karma: 110205705
Join Date: Jun 2015
Location: Space City, Texas
Device: Clara HD; Nook ST w/Glowlight, (2015) Glowlight Plus, Paperwhite 3
|
Quote:
I'm moving away from patches. For the most part Kobo's firmware is good enough without (well, I still use better hyphenation dictionary). I do think I'll test the "Un-Force user font-family in KePubs" patch Aleron mentioned, as I don't like whatever the default Serif font is as much as I like Literata Book. |
|
![]() |
![]() |
![]() |
#8 |
Gentleman and scholar
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,236
Karma: 110205705
Join Date: Jun 2015
Location: Space City, Texas
Device: Clara HD; Nook ST w/Glowlight, (2015) Glowlight Plus, Paperwhite 3
|
In the "Un-Force user font-family in KePubs", aside from changing enabled to yes, do I need to do anything with alternatives 1-3?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
font-family in <body> HTML or body{} CSS? | enuddleyarbl | ePub | 22 | 10-14-2022 10:52 PM |
Preferred Publisher Font for Body Text? | DreamWriter | Amazon Kindle | 12 | 07-25-2012 04:15 AM |
Change body text font from bld to normal | Jackdusty | Conversion | 4 | 03-17-2011 01:21 PM |
Pixel Qi 10" display will be sold as USB powered Secondary Display | Dulin's Books | News | 8 | 09-28-2010 06:15 PM |
Installed Dingbat font won't display in Firefox | autumnmoon | Workshop | 3 | 12-22-2009 10:57 AM |