![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 93
Karma: 1255124
Join Date: Feb 2013
Location: Ontario, Canada
Device: Kobo Libra Colour, Kobo Libra 2, Kobo Libra H2O, Kindle Oasis 9
|
Missing font on children's epub/kepub on device (Kobo)
Hello,
I have a series of children's books that appear normally in Calibre, but when copied to their Kobo Libra H2O the book appears without fonts. It's a children's book and does have pictures, just no words (blank where the text would be). It happens for the entire series. I tried changing through every font on the device but nothing. I tried viewing the 'edit' of a book and clicking on the 'bug' icon, it gives the error 'Unexpected Missing Generic Font Family'. I'm not sure how to fix this for each book in the series, and I'm a total novice in any sort of book editing (I can click plugins just fine though). Any advice would be well appreciated, thank you. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,929
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I think you have a missing (not a device standard ) font on the device.
For YOUR use (only): You could just add the font file(s) to the fonts folder on each Kobo. or you could embed them in each book. Calibre editor has a and item under Tools: embed referenced fonts (this may work if the font is found on your system: You say the font works for these books ![]() If the books are for ANY KIND of distribution, there are legal hoops dictated by the font creator that MUST be followed. (Not all involve spending money ). There is a slightly different method for when the above embed fails. You must use the File menu to add a font (use) to the book. it imports the files AND suggests (a clipboard) the @font to add *paste and edit) to the CSS ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 249
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
|
Have you tried selecting the area where there should be words while viewing a book on the Kobo? I'm guessing that the words are present, but are displayed in a bad color (e.g., white on white).
Quick and dirty fix: Convert Book > Look & Feel > Styling > Filter style information > select 'colors' to remove all color references. |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,929
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 93
Karma: 1255124
Join Date: Feb 2013
Location: Ontario, Canada
Device: Kobo Libra Colour, Kobo Libra 2, Kobo Libra H2O, Kindle Oasis 9
|
Quote:
Errors: Ok, I received a 'no embeddable fonts found' and strangely, if I view the book in the calibre viewer it shows the fonts, but if I view it in the editor the page is blank (images still showing). More specifically, the error is 'unexpecteded missing generic font family (stylesheet.css).' So I clicked the stylesheet.css, and it looks like it's a font called 'oppjfiltckennerleypro', which with some google looks like ltc kennerly pro. Last edited by mgrimace; 05-15-2025 at 11:06 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 93
Karma: 1255124
Join Date: Feb 2013
Location: Ontario, Canada
Device: Kobo Libra Colour, Kobo Libra 2, Kobo Libra H2O, Kindle Oasis 9
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,364
Karma: 145488914
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
You could post the relevant HTML/CSS code so we can see what's going on. |
|
![]() |
![]() |
![]() |
#8 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 93
Karma: 1255124
Join Date: Feb 2013
Location: Ontario, Canada
Device: Kobo Libra Colour, Kobo Libra 2, Kobo Libra H2O, Kindle Oasis 9
|
Quote:
Yes, in the editor: - the 'bug' icon states: unexpected missing generic font family at stylesheet.css (line: 38 column: 17) - selecting 'Tools: embed referenced fonts', gives an error: 'no embeddable fonts found' CSS: Code:
.calibre { display: block; font-size: 0.58333em; padding: 0; margin: 0 5pt } .calibre1 { display: block; height: 770; overflow: hidden; position: relative; width: 600; padding: 0; margin: 0 } .calibre2 { letter-spacing: -1px; line-height: 1.2 } .calibre3 { letter-spacing: 1px; line-height: 1.2 } .calibre4 { letter-spacing: 2px; line-height: 1.2 } .calibre5 { letter-spacing: -2px; line-height: 1.2 } .hlink { color: inherit; text-decoration: none } .justify { color: #211d1e; font-family: oppjfiltckennerleyproitalic; font-size: 1.28571em; font-variant-ligatures: none } .justify1 { color: #211d1e; font-family: oppjfhltckennerleypro; font-size: 1.28571em; font-variant-ligatures: none } .justify2 { color: #211d1e; font-family: oppjfhltckennerleypro; font-size: 1.71429em; font-variant-ligatures: none } .justify3 { color: transparent; font-family: oppjfhltckennerleypro; font-size: 1em; font-variant-ligatures: none } .justify4 { color: #211d1e; font-family: oppjfhltckennerleypro; font-size: 1.71429em; font-variant-ligatures: none; white-space: nowrap } .lpage { background-image: url(images/00003.jpeg); background-repeat: no-repeat; background-size: 600px 770px; display: block; height: 770px; position: absolute; width: 600px; padding: 0; margin: 0 } .lpage1 { background-image: url(images/00004.jpeg); background-repeat: no-repeat; background-size: 600px 770px; display: block; height: 770px; position: absolute; width: 600px; padding: 0; margin: 0 } Last edited by mgrimace; 05-15-2025 at 11:13 AM. |
|
![]() |
![]() |
![]() |
#9 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 249
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
|
Quote:
But you were right in this case, this wasn't OP's issue. |
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,176
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Open the ebook in the editor then do a find/replace all:
find: Code:
font-family: oppjfiltckennerleyproitalic; Code:
font-family:oppjfiltckennerleyproitalic, sans-serif; bernie Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 93
Karma: 1255124
Join Date: Feb 2013
Location: Ontario, Canada
Device: Kobo Libra Colour, Kobo Libra 2, Kobo Libra H2O, Kindle Oasis 9
|
Quote:
Each time I made a change, I saved the .epub, deleted the .kepub and re-converted a fresh .kepub. |
|
![]() |
![]() |
![]() |
#12 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,210
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
You should not change the @font-face declarations. Only in the body of the CSS. If the font is being used as the body font, I just place it in the body declaration.
Code:
@font-face { font-family: 'Charis SIL'; font-weight: normal; font-style: normal; src: url('../Fonts/CharisSILR.ttf'); } @font-face { font-family: 'Charis SIL'; font-weight: normal; font-style: italic; src: url('../Fonts/CharisSILI.ttf'); } @font-face { font-family: 'Charis SIL'; font-weight: bold; font-style: normal; src: url('../Fonts/CharisSILB.ttf'); } @font-face { font-family: 'Charis SIL'; font-weight: bold; font-style: italic; src: url('../Fonts/CharisSILBI.ttf'); } body { display: block; font-family: "Charis SIL", serif; font-size: 1em; margin: 0 0 0 0; padding: 0 0 0 0; text-indent: 0; widows: 1; orphans: 1; } |
![]() |
![]() |
![]() |
#13 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,929
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
It may also be doing a fallback on its own Which is the topic of the last message> It is advising that you just did not specify a fallback in the @font (not usually a big problem if you are embedding the font. OTOH if you are depending on the device to HAVE the font, having a fallback OF CHOICE is advised. common generic: serif, sanserif. But you can also have alternates in order of preference.) |
|
![]() |
![]() |
![]() |
#14 | |
Bibliolater
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,738
Karma: 6000000
Join Date: Dec 2021
Location: England
Device: none
|
Quote:
So Code:
font-family: oppjfiltckennerleyproitalic, sans-serif; |
|
![]() |
![]() |
![]() |
#15 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 93
Karma: 1255124
Join Date: Feb 2013
Location: Ontario, Canada
Device: Kobo Libra Colour, Kobo Libra 2, Kobo Libra H2O, Kindle Oasis 9
|
Quote:
Everything I did the find/change for font-family was labelled either 'style' or 'justify'. EDIT my bad, I see that there is @font-face in page_styles.css, I totally missed that. Here's what it looks like: Code:
@page { margin-bottom: 5pt; margin-top: 5pt } @font-face { font-family: "oppjfhltckennerleypro"; src: url(fonts/00001.otf) } @font-face { font-family: "oppjfiltckennerleyproitalic"; src: url(fonts/00002.otf) } Last edited by mgrimace; 05-16-2025 at 10:24 AM. Reason: Missed something |
|
![]() |
![]() |
![]() |
Tags |
calibre, epub, font, kobo |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub / KePub font sizes experiments | GeoffR | Kobo Developer's Corner | 8 | 08-28-2022 12:22 PM |
Missing spaces after coverting epub to kepub | nyamok gajah | Kobo Reader | 11 | 01-11-2021 06:38 AM |
How does Calibre recognise books on device / Kobo Kepub-Epub (not) linked | Mrs_Often | Devices | 12 | 06-08-2018 07:00 AM |
Smaller font size for kepub compared to epub on Kobo Aura HD | yevgeny.bezman | Kobo Reader | 2 | 07-14-2015 12:16 PM |
Aura HD Diferent font size in epub and kepub | ersott | Kobo Reader | 24 | 04-15-2014 07:03 AM |