View Single Post
Old 07-18-2013, 07:38 PM   #11
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,825
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Mathew Reuther View Post
Be as exacting as you'd like. I am not bothered at all. I was not aware that there was a (format) argument which could even be included. Is that something you typically use? I've never seen it laid out like that. Do you recommend using that format declaration as a standard in your css? (and what is the format declaration then for truetype? "truetype"?

As for the mainifest, here is an example of what they look like. This is, mind you, auto-generated by Sigil...I do not hand code it:

(inside the manifest section of the content.opf file)

<item href="Fonts/display_font.ttf" id="display_font.ttf" media-type="application/x-font-ttf" />

<item href="Fonts/header_font.otf" id="header_font.otf" media-type="application/vnd.ms-opentype" />

Now, as a test, if you could just tell me the name of a font or two that you know will work that come from a source that is free (fontsquirrel, dafont, google fonts, etc.) I can try to use those and see what happens. That way we know that the fonts themselves DO work in another file.
Ah, ah, ah. It seems that we have something here According to your manifiest, you are declaring the font as:

Code:
href="Fonts/display_font.ttf"
But you, ARE USING in the path, in @font-face:

Code:
@font-face {
    font-family : "display-font";
    font-weight : normal;
    font-style: normal;
    src : url("../Fonts/display-font.ttf");
}
Can you see? You are using "display-font.ttf" in @font-face but in the manifiest the font is refered as "display_font.ttf"

It seems that here could be the cause of your troubles. Use "display_font.ttf" and "header_font.otf" for all declarations. Also, if neccesary, rename the fonts in your Fonts folder.

Regards
Rubén
RbnJrg is offline   Reply With Quote