Solved

Automatic font download.

Posted on 2001-07-29
7
2,196 Views
Last Modified: 2013-12-02
Hello,

  I have made glossary in Marathi other the english language. and used the font shree714.

 When client browse the site he needs this font.

 I want to know how it will automatically downloaded.


 all types of comments and suggestions are welcome.

 Thanks and regards

 dAshish.
0
Comment
Question by:dashish
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 19

Expert Comment

by:webwoman
ID: 6334252
Not going to happen... I've never found anybody who could get downloaded fonts to work correctly.

If you're using another language, they should already have the font. If they don't, I'd say chances are excellent that they won't be able to read it even if they DID have the font. ;-)
0
 
LVL 9

Expert Comment

by:Nitin Sontakke
ID: 6334738
I am not adding anything constructive here.

I had subscribed to this, because i also want to do the same thing and for Marathi.

I am sorry, but i beg to differ with WebWoman. I have seen eSakal.com do it.

This has something to do with files with ".eot" extension.

Somehow, i am still to implement it. But i am generally of the opinion that it can be done. I am not sure, because i have not done this myself.

WebWoman,

If you have never visited http://www.eSakal.com in past, you are pretty sure that the Marathi font is not there on your computer. Will you mind visit it now, and see if you see all the junk (ASCII chars) or something that can be perceived to be a language, in case you don't know Marathi? Thanks.



0
 
LVL 19

Expert Comment

by:webwoman
ID: 6336298
Total garbage, except for the graphics. I don't have the font, and wasn't prompted to download it. Using NN6.

So I tried it in IE5... there it worked. It uses MS specific coding. If you don't have the right type of font (you'll probably need to get it or the app to make it from MS, no clue how much) it won't work. And it won't work in older versions of IE, anything OTHER than IE, or any text only browser.

If you can live with that, check on MS web site for the instructions on how to do it. That is, if you can find them, AND figure them out.

This is the ONLY time I've ever seen it work outside of MS web site. Congrats to them!
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Accepted Solution

by:
nzjonboy earned 25 total points
ID: 6336476
you can do this dynamically in netscape 4.03+ and ie 4+ (I think) but you need to convert your .ttf files to .pfr (netscape) and .eot (ie). you can get a cnoverter from <a href="http://www.microsoft.com/typography/web/embedding/weft/">http://www.microsoft.com/typography/web/embedding/weft/</a>. its free, don't know if it does .pfr files though. once you have converted the files you can use code similar to

     if (navigator.appName == "Netscape")
          document.write ("<link rel='fontdef' src='http://www.yourdomain.com/fontfile.pfr'>");
     else
     {
          document.write ('<style type="text/css">');
          document.write (' @font-face {');
          document.write (' font-family:<fontname here>'+"\;");
          document.write (' font-style: normal'+"\;");
          document.write (' font-weight: normal'+"\;");
          document.write (' src: url("http://www.yourdomain.com/fontfile.eot")');
          document.write ('}');
          document.write ('</style>');
     }
}

here's another example of implementation

<a href="http://www-personal.umich.edu/~pughm/dhtmlass.html">http://www-personal.umich.edu/~pughm/dhtmlass.html</a>

hope this helps

nzjonboy
0
 
LVL 3

Expert Comment

by:nzjonboy
ID: 6336478
you can do this dynamically in netscape 4.03+ and ie 4+ (I think) but you need to convert your .ttf
files to .pfr (netscape) and .eot (ie). you can get a cnoverter from http://www.microsoft.com/typography/web/embedding/weft/>. its free, don't know
if it does .pfr files though. once you have converted the files you can use code similar to

    if (navigator.appName == "Netscape")
         document.write ("<link rel='fontdef' src='http://www.yourdomain.com/fontfile.pfr'>");
    else
    {
         document.write ('<style type="text/css">');
         document.write (' @font-face {');
         document.write (' font-family:<fontname here>'+"\;");
         document.write (' font-style: normal'+"\;");
         document.write (' font-weight: normal'+"\;");
         document.write (' src: url("http://www.yourdomain.com/fontfile.eot")');
         document.write ('}');
         document.write ('</style>');
    }
}

here's another example of implementation

http://www-personal.umich.edu/~pughm/dhtmlass.html

hope this helps

nzjonboy
0
 
LVL 2

Expert Comment

by:kevincasey
ID: 6349331
just for reference, "weft" stands for something like "web embedded font technology" and "pfr" stands for "portable font resource".

also, there are tools available from bitstream to create pfr files at:
http://www.bitstream.com/categories/developer/tdis/pfr_mgr.html
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6350446
Bitstream (and Netscape) is flakey at best. MS at least works -- for most people, anyway. ;-)

But both are EXTREMELY dependent on being able to create the font correctly. That's the killer. And that's why hardly anybody even tries.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question