Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have got indian rupees font i want to add it into c# web application. how can i add it into my project whenever i want to use. so kindly help . Thanks in advance.
Posted

Edit:
I misread the question, I missed the 'web' part of the question and thought it was Forms, sorry.
I think the only way of using it in a web enviroment is to have the font installed client-side.
----
Original post:
I believe using a 'Private font collection' can deal with this.
A quote from MSDN:
You can use a PrivateFontCollection object to maintain a set of fonts specifically for your application. A private font collection can include installed system fonts as well as fonts that have not been installed on the computer.

Here's the article from MSDN
http://msdn.microsoft.com/en-us/library/y505zzfw.aspx[^].
 
Share this answer
 
v4
Comments
Sergey Alexandrovich Kryukov 29-Apr-11 3:46am    
No! (Well, I tried it, but -- this is Web. How can you guarantee it is installed in the machine of the visitors?!).

Please see my answer.
--SA
You cannot "Indian rupees font", it can be a code point in Unicode, see http://en.wikipedia.org/wiki/Indian_rupee[^].

A rendering of this symbol is problematic — it is not rendered in my system, even though I can read Devanagari script for this word. Wikipedia says:

The content ( ₹ <-- rupee symbol) inside the braces would only be visible if your computer have the updated version of Unicode Installed. Ubuntu 10.10 was the first operating system to include this version of Unicode.
So, please listen for a good friendly advice: give up. You can not assume anything about fonts installed on you the machine of the visitors of your site. Therefore, just make a PNG picture of this symbol and insert it using the IMG tag whenever needed. Or use the full name of this currency in Devanagari — it's Unicode range is rendered at least by one font on all general-purpose modern systems.

—SA
 
Share this answer
 
v2

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