View Single Post
Old 02-17-2015, 07:08 AM   #1
Wilfred9667
Junior Member
Wilfred9667 began at the beginning.
 
Wilfred9667's Avatar
 
Posts: 5
Karma: 10
Join Date: Dec 2014
Device: none
Font file reference error

I've had a look at a recent 'Embedding Fonts' thread, but it did not answer my question.

I am using calibre v. 1.48, on a Mac OS X 10.5.8 system [I am upgrading soon, but all in good time!]. I have converted a book I wrote from html/css to ePub, and have eliminated most of the problems, but I have a persistent font recognition problem.

A css class using the Arial Narrow font is referenced, as below, in stylesheet.css:

.chfrtnbktop {
display: block;
font-family: "Arial Narrow";
font-size: 1.571em;
line-height: 1.2;
text-align: justify;
width: 100%;
word-spacing: 0.25em;
margin: 0 0 0.409em 2.775em
}

I had previously had a problem after running a 'check book' routine, that the font was not found, despite opting to embed all referenced fonts, and it was not present in page_styles.css, so I imported the font file using the 'import resource file' option from File->New file, as recommended. A further 'check book' run produced the following error:

"fonts/Arial_Narrow.ttf

This file is included in the book but not referred to by any document in the spine. This means that the file will not be viewable on most ebook readers. You should probably remove this file from the book or add a link to it somewhere."

This error could not be corrected as a fixable error. The file is referred to by a document in the spine, using the html:

<p class="chfrtnbktop">TEXT</p>

This text forms part of [the top line, to be exact] a separate section that is the representation of a printed label on a book referred to in the text, and there are 2 horizontal lines in the section that are imported & displayed as image files, as well as other text that is displayed correctly when viewed in iBooks on an iPad [although the conversion was done for the Sony PRS reader, again as recommended to be generic, with a 590x775 screen size], so I don't think that is an explanation for the Arial Narrow font not being displayed on the iPad, even though it is clearly referenced.

Can you help please? I suppose I could export the complete section from the original document as an image, and import this image in the html, but I would like to know why this problem is occurring, to prevent it occurring in future, in my next book. Thank you.
Wilfred9667 is offline   Reply With Quote