Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 11-03-2016, 12:07 AM   #1
dlibke
Junior Member
dlibke began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Device: none
Calibre edit book does not embed referenced font

I am using windows 7 calibre 2.71 edit book app. It displays the css referenced font family, installs the font in ...AppData\Roaming\calibre\fonts, but does not embed the font set with this message: 'Embedding referenced fonts
Failed to find fonts for family: Artisan, not embedding
No embeddable fonts found'. The font information says that it is embeddable.

The font references are the following:
.calibre3 {
font-family: Artisan;
font-size: 2em;
font-style: normal;
text-align: center;
.calibre4 {
font-family: Artisan;
font-size: 1em;
font-style: normal;
}

What am I missing/not doing?
dlibke is offline   Reply With Quote
Old 11-03-2016, 12:23 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,300
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The font family you specify has to match exactly the font family in the font files. And the font has to be in either ttf or otf format.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-03-2016, 10:46 AM   #3
dlibke
Junior Member
dlibke began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Device: none
According to the Mac Font Manager's font info for Artisan.oft, the Postscript name is Artisan, the full name is Artisan Regular, and the Family is Artisan, which matches exactly the specified font family. The Calibre Manage Fonts app found the referenced font family, the app's '+ Install Fonts' button found the font-containing file in \Downloads\Artisan-Display-Typeface folder, and it copied Artisan.otf to \AppData\Roaming\calibre\fonts. Now, the question is 'Why then in the same app does the 'Embed All Fonts' button throw a 'cannot find file' error and the 'Install Fonts' button does not?
dlibke is offline   Reply With Quote
Old 11-03-2016, 12:07 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,300
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Umm I have no idea what you are saying. There is no question of Install Fonts finding amything, since you provide it with a file.

So change the font family to "Artisan Regular"
kovidgoyal is offline   Reply With Quote
Old 11-03-2016, 03:38 PM   #5
dlibke
Junior Member
dlibke began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Umm I have no idea what you are saying. There is no question of Install Fonts finding amything, since you provide it with a file.

So change the font family to "Artisan Regular"
What I am saying is that from what you said in your first reply:

Quote:
Originally Posted by kovidgoyal View Post
The font family you specify has to match exactly the font family in the font files. And the font has to be in either ttf or otf format.
I verified that it is in fact true in my Styles0001.css file and the font file using Apple's Font Book That is the font family I specified in the css class is an exact match to the font family in the font file, which is in the calibre font folder.

As you suggested, I changed the css font family to 'Artisan Regular', which changed the font family listing in the manage fonts app to 'Artisan Regular'. Clicking on the 'Embed All Fonts' button Embedding referenced fonts
produced following error:
"Failed to find fonts for family: Artisan Regular, not embedding
No embeddable fonts found"

My license for the font provides the following: Use This Font For:
Commercial Use
Unlimited Number of Projects
Unlimited End Products For Sale

Where does 'Embed All Fonts' look for font files?
dlibke is offline   Reply With Quote
Advert
Old 11-06-2016, 11:19 AM   #6
eMole
Zealot
eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.
 
Posts: 130
Karma: 546310
Join Date: Jun 2011
Device: PocketBook Touch HD, PocketBook Era
I'm guessing:
1. You're missing a curly brace,
2. remove font-style: normal.

And let me piggy-back on this embedded font thread, I found that the generated font.css is not foolproof for my ADE based reader sw, I have to manually add font-style: normal, font-weight: normal to other font variant definitions to have bold-italic work.
eMole is offline   Reply With Quote
Old 11-06-2016, 10:13 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,300
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You said you Installed the fonts in a previous post. Which means it does not matter where else embed fonts looks, since it always looks in the calibre installed fonts folder.

In order to help you any more, I am going to need to see the ebook file and the font files in question.

@eMole: normal is the default value for those properties. There should be no need to specify them, anywhere, except in cascading rules that are overriding a rule from higher up in the hierarchy. They certainly dont need to be specified in @font-face rules. On my machine, @font-face rules seem to work fine on ADE (1.7) without those properties.
kovidgoyal is offline   Reply With Quote
Old 11-07-2016, 06:07 AM   #8
eMole
Zealot
eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.eMole ought to be getting tired of karma fortunes by now.
 
Posts: 130
Karma: 546310
Join Date: Jun 2011
Device: PocketBook Touch HD, PocketBook Era
I'm sure calibre is right about normal values. It's my reader app that is goofy.
Boyue clone with stock ADE based reader, latest firmware.
eMole is offline   Reply With Quote
Old 11-07-2016, 09:33 AM   #9
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: 31,003
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:
Originally Posted by eMole View Post
I'm sure calibre is right about normal values. It's my reader app that is goofy.
Boyue clone with stock ADE based reader, latest firmware.
AFAIK there is no such thing as 'Stock ADE' (RMSDK)

Everyone that licenses it, adjusts it to taste
RM (reader mobile) SDK (software development kit)

Astak made 5 or 6 releases of their firmware for the EZReader trying to please more people. Others that used the same hardware, had their versions.
theducks is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Edit Book Edit Window Font? lhuxley Editor 2 03-26-2015 11:11 PM
Editing stylessheet containing @font-face entry crashes edit book DrChiper Editor 9 07-12-2014 06:40 AM
Polish - embed all referenced fonts Sunlite Calibre 3 12-20-2013 01:37 PM
how to embed unicode font atu1303 LRF 8 08-21-2009 10:06 PM
Does Calibre embed "normal" font? radius Calibre 8 08-30-2008 05:04 PM


All times are GMT -4. The time now is 10:44 AM.


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