Downloading fonts doesn't work!

Post general font related questions (e.g. how to install, convert and use fonts) and requests (looking for fonts, designers etc.) here.
Post Reply
Mike Thompson
Top Typographer
Top Typographer
Posts: 408
Joined: Sat Apr 03, 2004 11:10 pm
Location: Massachusetts
Contact:

Downloading fonts doesn't work!

Post by Mike Thompson »

I'm at a loss as to where to post this! However the answer to my problem is likely to be known by other users of Font Creator reading this post.
For some years I have made my font Mike Hebrew available free from http://cunliffethompson.com/font/ and if
you click on Free Download you go to a page where links to the fonts are shown. Until recently clicking on these links downloaded the font. NOW THE BROWSER DISPLAYS THE CODE INSIDE THE .TTF FILE, that is we are given a page of gobbledigook. This happens for IE and Firefox. The usual download dialog box does not open.

I have no idea why this is happening and looking at other sites that provide successful downloads I don't see any difference between their http code and mine. I use:
Help! Mike
Mike Thompson
Hebrew Font Design
http://hebrew-font-shuneet.com
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9877
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Downloading fonts doesn't work!

Post by Bhikkhu Pesala »

I see the same problem in Opera too, and if I try right-click and "Save linked content as…" I get an HTM file instead of the TTF. I think it is something to do with wrong MIME types on the server, but don't know how to fix it.

As a workaround you could zip the fonts into an archive and link to that instead. That will save bandwidth too.
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
William
Top Typographer
Top Typographer
Posts: 2038
Joined: Tue Sep 14, 2004 6:41 pm
Location: Worcestershire, England
Contact:

Re: Downloading fonts doesn't work!

Post by William »

This problem looks familiar. I had similar problems, as mentioned in the following thread.

viewtopic.php?f=16&t=1936

William Overington

11 December 2008
Erwin Denissen
Moderator
Moderator
Posts: 11158
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Downloading fonts doesn't work!

Post by Erwin Denissen »

Code: Select all

Receiving Header:
HTTP/1.1·200·OK(CR)(LF)
Date:·Thu,·11·Dec·2008·08:20:13·GMT(CR)(LF)
Server:·Apache/2.2.3·(Red·Hat)(CR)(LF)
Last-Modified:·Sun,·27·Jan·2008·00:36:56·GMT(CR)(LF)
ETag:·"9d439a-6484-637ada00"(CR)(LF)
Accept-Ranges:·bytes(CR)(LF)
Content-Length:·25732(CR)(LF)
Connection:·close(CR)(LF)
Content-Type:·text/html(CR)(LF)
(CR)(LF)
I suspect the Content-Type is wrong. If possible correct it through your webserver control panel, or contact your web hosting company and ask them to fix it.
Erwin Denissen
High-Logic
Proven Font Technology
Erwin Denissen
Moderator
Moderator
Posts: 11158
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Downloading fonts doesn't work!

Post by Erwin Denissen »

Adding the following line in your .htaccess file should solve the problem:

Code: Select all

AddType text/plain ttf
If that doesn't work you could try:

Code: Select all

AddType application/octet-stream ttf
or even

Code: Select all

AddType font/ttf ttf
Erwin Denissen
High-Logic
Proven Font Technology
Mike Thompson
Top Typographer
Top Typographer
Posts: 408
Joined: Sat Apr 03, 2004 11:10 pm
Location: Massachusetts
Contact:

Re: Downloading fonts doesn't work!

Post by Mike Thompson »

Thanks Erwin, I added "AddType text/plain ttf" and the download works again. Mike
Mike Thompson
Hebrew Font Design
http://hebrew-font-shuneet.com
Post Reply