![]() |
#1 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Error after embedding fonts
I'm not sure when this error started happening, because generally, I run Check Book before I embed fonts.
I first noticed in mid-June that after embedding fonts, if I run Check Book, I get this error message. It has happened consistently since I noticed. As the embedding and generation of the content.opf is performed by Calibre (to my knowledge) I'm not sure where, or if, I can fix this. It also happens for ALL fonts I try to embed (I have about 4 that I have used for years) Quote:
I'm running Calibre 5.44 on Windows 11 and all my plugins are up to date. |
|
![]() |
![]() |
![]() |
#2 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
OK...So there's no way to avoid that extra step when I get the message (I realize now it's a 'warning' and not an 'error')? It does seem to affect how the text with that font appears on my Kobo, as that is why I noticed it in the first place.
|
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 221034
Join Date: May 2021
Device: None
|
Normally if you import a font, it automatically adds the mimetype for you. Not sure why you would get that message if it's properly imported. Without knowing your process, it's hard to say why it happens. However, to answer the question, there's no way to avoid it if it finds that it should be changed to the proper mimetype.
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,344
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@MerlinMama: What version of EPUB is this? I tried the following steps with an EPUB 3.0 file:
1) Click File->New file 2) Click import resource 3) Choose an OTF font file 4) Click OK 5) Open content.opf and find the newly created entry for the font 6) The media-type is application/vnd.ms-opentype as expected |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
I'm not sure about ePub2 or ePub3, probably both?
I've had these fonts installed since at least 2017 -- just as I was about to hit send I realized that while I've been using them for years I had to reinstall them when I got my new computer in February. I think I only started having trouble in early to mid-June, but could be wrong. I don't import them each time, should I be? I usually just embed and then subset the fonts once I'm ready to sent to my Kobo. I also tried without subsetting them and it doesn't change anything. I'll have to get an older book that already has them embedded from before February and see if I get that message |
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Because these are not the overall font. I use one for letters, one for transitions (eg. Later that Day), and one for Newspaper articles. If I don't embed, even if they are on my Kobo, they do not show. If I don't have any of these instances, I don't embed.
So if the book is in, for example, New Times Roman, and that's all there is, I don't embed. If there's a letter, I have just that show as Segoe Print. A newspaper article, Kirsty. Even if I have all the Fonts on my Kobo, everything shows up only in Times New Roman. I've never been able to get it to work without embedding, on any of my Kobo devices. |
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I'm not 100% sure if this will work on the 4.33 firmware. Code:
@font-face { font-family: monospace; font-style: normal; font-weight: normal; src: url("res:///fonts/normal/Dark Courier"); } @font-face { font-family: monospace; font-style: normal; font-weight: bold; src: url("res:///fonts/bold/Dark Courier"); } @font-face { font-family: monospace; font-style: italic; font-weight: normal; src: url("res:///fonts/italic/Dark Courier"); } @font-face { font-family: monospace; font-style: italic; font-weight: bold; src: url("res:///fonts/bolditalic/Dark Courier"); } Last edited by JSWolf; 07-10-2022 at 07:43 AM. |
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,344
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah you use embed, this should take care of it: https://github.com/kovidgoyal/calibr...ba5532f364a086
|
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Thank you for this, Kovid. I have the same issue and this will make things easier.
|
![]() |
![]() |
![]() |
#12 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Thank you
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
error unhandled exception embedding fonts | rjwse@aol.com | Editor | 2 | 11-06-2018 09:21 AM |
Embedding fonts | DrChiper | Editor | 11 | 02-24-2014 11:13 AM |
Fonts embedding | 1drey | Writer2ePub | 3 | 06-17-2011 11:15 PM |
Embedding fonts | JaneFancher | Calibre | 14 | 04-10-2010 09:28 PM |
Embedding fonts | AprilHare | ePub | 6 | 01-02-2010 11:42 AM |