Local Language Fonts
Dynamic
Fonts refer to a special category of fonts
meant for Internet only.
These fonts are dynamically loaded
on the fly along with the Web Page in which they are embedded and hence
the name Dynamic Fonts. The terms Internet Fonts and Web Fonts are
aliases for Dynamic Fonts. These fonts are especially useful in the case
of web pages containing Indian language contents because it is not
always possible that the Indian language fonts used to develop these web
pages will be installed on the client's machine.
If the Indian language web page is using fonts which
are not present in the client's machine and the web page does not
contain any Dynamic Fonts then the page will not be in a readable format
and will show meaningless characters. |
We require to have .EOT or .PFR font in website folder. below are the
sample Files requires to run Custom Fonts. .EOT / . PFR - Language Custom Font files. .Js - Java Script File to Load Font on Client Machine |
Add below Line in Your .asp or .htm Page Header to load Font dynamically. you has to include these lines in all pages which using dynamic font |
<HEAD> <META http-equiv="Content-Type" content="text/html;charset=x-user-defined"> <SCRIPT LANGUAGE="JavaScript" src="PFR_EOT.js"> </SCRIPT> </HEAD> |
.JS File |
bVer = parseInt(navigator.appVersion); if (bVer >= 4) { if (navigator.appName == "Netscape") { document.write ('<link rel="fontdef" src="http://www.dinpl/fonts/Shree-Dev-0708.pfr">'); } else { document.write ('<style type="text/css">'); document.write ('@font-face {'); document.write ('font-family: Shree-Dev-0708;'); document.write ('font-style : normal;'); document.write ('font-weight: normal;'); document.write ('src : url("http://www.dinpl.com/fonts/SHREEDE0.eot");'); document.write ('}'); document.write ('</style>'); } } |
Use Full Link's CDAC Shree-Lipi |