I want to use hindi font in some of my Pages on a ASP.NET Site. I have that font on my machine. that may not be available in general. how can i pack my font with the website, so that any user who uses the site sees the text in same font.
even if i define that font for any control
in the Font
properties of that control.
(let say drop down box),
<asp:DropDownList ID="ddlCourse" runat="server" AutoPostBack="True"
Font-Names="Kruti Dev 010" Font-Size="18pt" Height="29px"
it does not work on local machine, what could be the problem. the Items shown in DDL are shown as english font,
hope i made myself clear.
Just a note for you: there is no such thing as "Hindi font". There is Devanagari script used not just in Hindi but in a good number of other most used languages in India and — importantly — in Sansrit. Now, there are no "English" or "Latin" or "Arabic" or "Devanagari" fonts. The fonts supporting Unicode are universal but they can support different sub-sets of Unicode code points. To best of my knowledge Devanagari is supported at least by one font in all modern desktop-oriented systems (anyway, you Question remains valid: how to guarantee it?).—SA
Look, I've never been in India and never worked with any Indian language but I know this most basic and simple fact of Indian culture.
You live and work in India and aim to support Hindi, so you're supposed to know better. In my humble opinion, you need to respect culture of your own country…
Edited 7-Mar-11 23:19pm
Your font must be located in "C:\Windows\Fonts".
Also, when you publish your website on a production server, you must make sure that the font is installed on that particular machine.
Another thing to point out is, where are you getting the strings from? If you're getting the strings from a file or a database, make sure that the strings are stored and retrieved in Hindi fonts.
Edited 29-Sep-13 22:35pm
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)