?
Solved

Automatic font download.

Posted on 2001-07-29
7
Medium Priority
?
2,231 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
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 11

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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 3

Accepted Solution

by:
nzjonboy earned 50 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses how to implement server side field validation and display customized error messages to the client.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

609 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