OTS parsing error: invalid sfntVersion: 1008813135

Username (e.g. epiz_XXX) or Website URL

epiz_30855160

http://mark-foyster.epizy.com/watersports/index.html

Error Message

Failed to decode downloaded font: http://mark-foyster.epizy.com/watersports/css/fonts/Alegreya-black.ttf

OTS parsing error: invalid sfntVersion: 1008813135

Other Information

I have used two ttf’s from the same family. One works but the other one won’t load. I’m a bit confused by this one. It works fine on my localhost. Ay ideas as to what’s going on greatly appreciated.

many thanks,

Mark.

Just in case it’s any use, here’s the css:

@font-face 
{
	font-family: Alegreya;
	src: url(fonts/Alegreya-black.ttf);
}

@font-face 
{
	font-family: Alegreya;
	src: url(fonts/Alegreya-BlackItalic.ttf);
	font-style: italic;
}

Maybe you should add the format('truetype') attribute after the url() in the source.

2 Likes

Thank you, I did give that a try and although it hasn’t worked I’ve kept it in as it must be more syntactically correct?

It’s strange that both files are from the same source and both work fine locally but just not on the server.

I’m lost on this one.

Thanks again for the help :slight_smile:

P.S. Just off chance, I re-uploaded the file (in case there was a corruption of some kind) but no joy :frowning:

The URL http://mark-foyster.epizy.com/watersports/css/fonts/Alegreya-black.ttf returns a 404 error to me. And of course, a 404 error cannot be used as a font.

Can you please double check the directories and file names? Please note that our servers, like almost all web hosting servers, use Linux, which has case sensitive file names and directories.

2 Likes

And sure enough, that is EXACTLY what was going on. A missed capital B…

My localhost is via windows through Xampp and not a true Unix/Linux environment and I made the daft assumption that because it was working there it must be correct path. DOH!!

Many thanks, that’s awesome and well spotted.

Kindest regards,

Mark.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.