Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do we Create a WPF application Using Hindi Font and how to save hindi fonts in Database??
Posted
Comments
Sergey Alexandrovich Kryukov 2-Nov-14 22:19pm    
"Save fonts", are you sure?
—SA

First of all, there is no such thing as "Hindi font" (even though there are fonts with such names). First, there is no such writing system or script as "Hindi". Modern Hindi uses Devanāgarī:
http://en.wikipedia.org/wiki/Devanagari[^].

Moreover, as .NET uses Unicode, a font cannot be even be a "Devanāgarī font". Each Unicode fonts supports several scripts at once, so several languages can use one font. Devanāgarī is so popular that it is supported by nearly all modern platforms by default, without a need to install or configure anything culture-specific. You can just use one of the general-purpose font supporting this script.

Even less sense makes the question about "saving a font in a database". However, I can guess that you merely mean saving texts. So, you certainly need to use Unicode text types for your Access database: http://msdn.microsoft.com/en-us/library/ms714540%28v=vs.85%29.aspx[^].

—SA
 
Share this answer
 
Comments
DamithSL 2-Nov-14 22:39pm    
5wd!
Sergey Alexandrovich Kryukov 2-Nov-14 23:31pm    
Thank you, Damith.
—SA
If you have a font you can use that by setting the Font property for any control that you wish, all you need to remember is to deploy those fonts to the client so your users can see them also.

You don't store fonts in a database you store characters which are Unicode or UTF8 in modern database systems which is called Collation in db speak : Using SQL Server Collations[^]
 
Share this answer
 
Comments
Manas Bhardwaj 2-Nov-14 14:54pm    
Yes, +5!
Mehdi Gholam 2-Nov-14 14:58pm    
Cheers Manas!
My impression is that you want to use an 8bit encoding of the ISCII family with a specialized font for displaying that.
Do not do so! With 8bit encodings, there is no information in a text file which encoding was used originally. Modern software uses unicode, and that works well with any kind of Indian fonts - without the need to remember which one of the ISCII encodings to apply (Devanagari, Marathi, Tamil, ...). For more information on Uncode, see Sergey Alexandrovich's answer above.
 
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