Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Is there is any code to install font to a client machine in asp.net?
Posted
Comments
NikulDarji 12-Dec-11 2:02am    
Do not ask for ready made code.....
Sergey Alexandrovich Kryukov 12-Dec-11 2:19am    
Do you really want to install it (is it possible? how about applying some logic?) or you just need to use a font on the Web page? This is not the same!
--SA

Even though you can install fonts programmatically, it cannot be done via ASP.NET which is a server-side technology; and the server-side cannot do anything to the client machine. Actually, this is very good, as this is all designed with safety in mind. From the standpoint of the client machine, there is no such thing as ASP.NET or any other server-side technology, there are only HTTP requests and responses.

However, I do understand that you probably do not need to instal the code per se, you just need to use a code stored on the server for a Web pages. Installing a font is not really an option.

This problem can be solved by embedding a technique of embedding a font in CSS. Please see, for example, http://home.tiscali.nl/developerscorner/fdc-varia/font-embedding.htm[^].

—SA
 
Share this answer
 
Comments
koolprasad2003 12-Dec-11 4:18am    
Nice enlighten. 5.
Sergey Alexandrovich Kryukov 12-Dec-11 4:26am    
Thank you, Prasad,
--SA
g4gijo7 12-Dec-11 8:02am    
Thank you...
Hi,

you can do it using ActiveX control. you need to create your own AX control to install font if you really need.

But AX will work on some limited browsers only...

hope this will help you,

thanks
-Amit.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900