![]() |
#1 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() 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?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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" |
![]() |
![]() |
![]() |
#5 | ||
Junior Member
![]() Posts: 8
Karma: 10
Join Date: May 2016
Device: none
|
Quote:
Quote:
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? |
||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#8 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#9 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |