Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-29-2019, 02:52 PM   #1
hulabula
Junior Member
hulabula began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2019
Device: Kobo Aura H2O 2nd Edition
Problem with an embedded font on Kobo e-reader

Hello,

I have created an e-book in which I would like to use an embedded font for some parts of the text.
I have the following in a css file:

@font-face {
font-family: "Open Sans";
font-weight: normal;
font-style: normal;
src: url(../Fonts/OpenSans-Regular.otf);
}

This is used as follows:

.sansserif {
font-family: "Open Sans", sans-serif;
}

I created the e-book with Sigil. The preview in Sigil works, it also works in Calibre. But when I copy the e-book to my Kobo reader (Aura H2O 2nd edition), only one font is used. Not the special one I embedded, and not the fallback sans-serif font, but the "default" serif font I use for all the other text in the book.
This is my first self-created e-book, and I don't have a different e-reader to test with. So I have no comparisons.

What could be the problem here?

Thanks for any help!
hulabula is offline   Reply With Quote
Old 09-29-2019, 06:03 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,661
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by hulabula View Post
Hello,

I have created an e-book in which I would like to use an embedded font for some parts of the text.
I have the following in a css file:

@font-face {
font-family: "Open Sans";
font-weight: normal;
font-style: normal;
src: url(../Fonts/OpenSans-Regular.otf);
}

This is used as follows:

.sansserif {
font-family: "Open Sans", sans-serif;
}

I created the e-book with Sigil. The preview in Sigil works, it also works in Calibre. But when I copy the e-book to my Kobo reader (Aura H2O 2nd edition), only one font is used. Not the special one I embedded, and not the fallback sans-serif font, but the "default" serif font I use for all the other text in the book.
This is my first self-created e-book, and I don't have a different e-reader to test with. So I have no comparisons.

What could be the problem here?

Thanks for any help!
Kobo supports sans-serif. So you don't need to embed a sans-serif font. Just use...

Code:
font-family: sans-serif;
in the classes you want a sans-serif font.

As for your CSS code, it looks good unless it's your pointer to the font file.
JSWolf is online now   Reply With Quote
Advert
Old 09-30-2019, 11:46 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Is you Kobo set to use Publishers font for that title? (the Aa font setting, while reading should offer that choice)
theducks is offline   Reply With Quote
Old 09-30-2019, 12:48 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,661
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I just tested embedded fonts with my H2O on 4.17.x (latest) and found that when the font was embedded, it displayed and where it wasn't, the font of my choice was displayed.
JSWolf is online now   Reply With Quote
Old 09-30-2019, 02:09 PM   #5
hulabula
Junior Member
hulabula began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2019
Device: Kobo Aura H2O 2nd Edition
Quote:
Originally Posted by JSWolf View Post
Kobo supports sans-serif. So you don't need to embed a sans-serif font. Just use...

Code:
font-family: sans-serif;
in the classes you want a sans-serif font.

As for your CSS code, it looks good unless it's your pointer to the font file.
I just tried to use "sans-serif;" only. It made no change at all :-(


Quote:
Is you Kobo set to use Publishers font for that title? (the Aa font setting, while reading should offer that choice)
Yes it's the publishers font. Actually this does not matter, as if I choose any other serif font there that one is used for all text. If a choose a sans-serif font there, that one is used for all text :-(


Quote:
I just tested embedded fonts with my H2O on 4.17.x (latest) and found that when the font was embedded, it displayed and where it wasn't, the font of my choice was displayed.
My Kobo has firmware 4.15.12920. Could there be such a bug in this firmware?

Any other ideas? It is very frustrating that such trivial functionality is not working :-(
hulabula is offline   Reply With Quote
Advert
Old 09-30-2019, 03:06 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,661
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by hulabula View Post
I just tried to use "sans-serif;" only. It made no change at all :-(




Yes it's the publishers font. Actually this does not matter, as if I choose any other serif font there that one is used for all text. If a choose a sans-serif font there, that one is used for all text :-(




My Kobo has firmware 4.15.12920. Could there be such a bug in this firmware?

Any other ideas? It is very frustrating that such trivial functionality is not working :-(
One idea is to go read the thread on the latest 4.17.x firmware. You can do a manual upgrade. Yes, there as some gotchas in 4.15 which is why I didn't install it as one of them might have been an issue for me. 4.17. is pretty good.
JSWolf is online now   Reply With Quote
Old 10-03-2019, 12:31 PM   #7
hulabula
Junior Member
hulabula began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2019
Device: Kobo Aura H2O 2nd Edition
Hi,

I found the problem. After upgrading to the 4.15.x firmware I patched it for the first time, without knowing what was included in the patch. I took a pre-done patch from somebody else.

Now I looked through all things which could be enabled in a patch, and one of the enabled functionalities was the reason that multiple fonts are not working.

Now I fixed it by creating a patch myself (and I updated to the newest firmware).

Thanks for your answers.
hulabula is offline   Reply With Quote
Reply

Tags
embedded, font, kobo

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedded font problem rbruce1314 Sigil 17 07-18-2017 08:30 PM
Embedded font question/problem pmorris Editor 13 05-12-2014 03:19 PM
Which Kobo Embedded Font Do You Use Most Often? justywusty Kobo Reader 89 07-11-2013 10:18 AM
Embedded font problem Moonraker Sigil 13 05-21-2013 05:33 PM
problem with embedded font ericshliao EPUBReader 2 12-11-2009 10:04 AM


All times are GMT -4. The time now is 06:56 AM.


MobileRead.com is a privately owned, operated and funded community.