# OTS parsing error: invalid sfntVersion: 1008813135

**URL:** <https://forum.infinityfree.com/t/ots-parsing-error-invalid-sfntversion-1008813135/60219>\
**Category:** Hosting Support\
**Created:** [April 9, 2022, 8:49am UTC](https://forum.infinityfree.com/t/ots-parsing-error-invalid-sfntversion-1008813135/60219 "2022-04-09T08:49:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mxfoyster](https://forum.infinityfree.com/letter_avatar/mxfoyster/32/6_449c533f586939b6e5f246632a46421f.png) [@mxfoyster](https://forum.infinityfree.com/u/mxfoyster)\
**Post date:** [April 9, 2022, 8:49am UTC](https://forum.infinityfree.com/t/ots-parsing-error-invalid-sfntversion-1008813135/60219/1 "2022-04-09T08:49:26Z")

</div>

### Username (e.g. epiz\_XXX) or Website URL

epiz\_30855160

[http://mark-foyster.epizy.com/watersports/index.html](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](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.

---

<div class="post-metadata">

**Author:** ![mxfoyster](https://forum.infinityfree.com/letter_avatar/mxfoyster/32/6_449c533f586939b6e5f246632a46421f.png) [@mxfoyster](https://forum.infinityfree.com/u/mxfoyster)\
**Post date:** [April 9, 2022, 8:50am UTC](https://forum.infinityfree.com/t/ots-parsing-error-invalid-sfntversion-1008813135/60219/2 "2022-04-09T08:50:39Z")

</div>

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

```auto
@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;
}

```

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [April 9, 2022, 10:47am UTC](https://forum.infinityfree.com/t/ots-parsing-error-invalid-sfntversion-1008813135/60219/3 "2022-04-09T10:47:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mxfoyster](https://forum.infinityfree.com/letter_avatar/mxfoyster/32/6_449c533f586939b6e5f246632a46421f.png) [@mxfoyster](https://forum.infinityfree.com/u/mxfoyster)\
**Post date:** [April 9, 2022, 11:12am UTC](https://forum.infinityfree.com/t/ots-parsing-error-invalid-sfntversion-1008813135/60219/4 "2022-04-09T11:12:23Z")

</div>

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 🙂

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

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [April 10, 2022, 8:38am UTC](https://forum.infinityfree.com/t/ots-parsing-error-invalid-sfntversion-1008813135/60219/5 "2022-04-10T08:38:13Z")

</div>

The URL [http://mark-foyster.epizy.com/watersports/css/fonts/Alegreya-black.ttf](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.

---

<div class="post-metadata">

**Author:** ![mxfoyster](https://forum.infinityfree.com/letter_avatar/mxfoyster/32/6_449c533f586939b6e5f246632a46421f.png) [@mxfoyster](https://forum.infinityfree.com/u/mxfoyster)\
**Post date:** [April 10, 2022, 8:56am UTC](https://forum.infinityfree.com/t/ots-parsing-error-invalid-sfntversion-1008813135/60219/6 "2022-04-10T08:56:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [April 17, 2022, 8:57am UTC](https://forum.infinityfree.com/t/ots-parsing-error-invalid-sfntversion-1008813135/60219/7 "2022-04-17T08:57:27Z")

</div>

Closed on April 17, 2022, 8:57am UTC

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