12-02-2014, 11:59 AM | #1 |
Wizard
Posts: 1,022
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Font integration problem
In the Editor mode, I imported a new font (via "File->New file), in this case a font named "FoglihtenNo07_0841.otf"). It properly was located in the "Fonts" directory.
Then, I added a "page_style.css" with (amongst others) this content: Code:
@font-face { font-family: "FoglihtenNo07"; src: url(OEBPS/Fonts/FoglihtenNo07_0841.otf) } Code:
.author { display: block; font-family: "FoglihtenNo07"; font-size: 2em; line-height: 1.34; text-align: center; text-indent: 0; margin: 0; } But when I executed the book check, I received this error: "The linked ressource 'OEBPS/Fonts/FoglihtenNo07_0841' does not exist [OEBPS/Styles/page_style.css]". I have absolutely no idea what could be wrong; the funny thing is that I edited to volumes of the same book at the same time with the same styles etc. Concerning the first volume, the above mentioned error messages had occured when I edited it yesterday. When I repeated the check today, it was all clear. But when I treated the second volume in the same manner, the error message was there again. Well, I could wait until tomorrow and try it again, but it would be fine to know what I did erroneous already today Someone could help me, please? Well, two volumes, of course, and the style sheets were correctly linked to the HTML files. And there is also the message that the font file is not referenced. Last edited by Leonatus; 12-02-2014 at 12:15 PM. |
12-02-2014, 01:19 PM | #2 |
Well trained by Cats
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I usually see the file name as:
Code:
src:url(../Fonts/FoglihtenNo07_0841.otf) |
12-02-2014, 01:42 PM | #3 |
Wizard
Posts: 1,022
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
I know this possibility with the two dots, and have tried it, but without avail.
In the stylesheet, there is no space after url (it only seems to have one here above). |
12-02-2014, 01:47 PM | #4 | |
Well trained by Cats
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Then I ran Sigil-Flightcrew The fonts OPF entry media-type was flagged |
|
12-02-2014, 03:17 PM | #5 |
Wizard
Posts: 1,022
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
I did all new now in Sigil, considering again the two-dot-option, and all works fine; even checking the book in Calibre shows no more error. Whatever it may have been - thank you for your help!
|
12-19-2014, 04:45 AM | #6 |
Wizard
Posts: 1,022
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
It really seems to be a bug:
I can do whatever I like in Edit Book to include a custom font - there is always an error message ("Font not referenced in the book ...", see above). The font does indeed show up in Calibre's Book Viewer, but not on the device after sending it there. If I open the book in Sigil, I need to change anything in the Stylesheet (remove a whitespace, copy the name of the font once more into the Stylesheet...), and then it works. Any check does not show an error. The font is also shown on the device afterwards. |
12-19-2014, 12:30 PM | #7 | |
Well trained by Cats
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Adding a font does not always make the path usage '../Fonts/fontname.fonttype' I keep screwing something up, because I have seen the actual path end up as:'../../Fonts/fontname.fonttype' (and it will end up showing the message you see) If you 'hover' over the fontfile name in the list, you will see its full path. then you can make adjustments |
|
01-02-2015, 05:50 AM | #8 |
Wizard
Posts: 1,022
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Thank you! I'll try this next time.
Edit: I have already hovered over the font name in the font list, but it doesn't show the path, but only the name of the font. Did you mean something different? Last edited by Leonatus; 01-02-2015 at 05:58 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem changing font size using font size key | Waylander | Conversion | 0 | 10-02-2013 03:30 PM |
Calibre Companion / Moon+ Integration Problem | dizzy274 | Calibre Companion | 3 | 08-12-2013 02:29 AM |
Font Problem | GeckoFriend | Feedback | 7 | 07-18-2012 08:04 AM |
Problem with font | Jellby | Workshop | 2 | 04-22-2012 12:09 PM |
Font problem | DNT | PocketBook | 19 | 01-20-2010 08:58 AM |