Reputation: 320
I am trying to create one web site in Kannada using asp.net c# in visual studio 2010.this web site is a simple web site with one button,2 labels and 2 text boxes.I want to display the values in Kannada. and while typing only it has to come in Kannada. But i am unable to include that font to the text boxes labels etc.. can any one tell me which are the other software i need to use. To do this i downloaded Kannada fonts. can i achieve this without using translators.?. can any one tell me how i can do this?.... how to include Kannada font to my website?....
Upvotes: 3
Views: 3178
Reputation: 500
For taking user input in kannada, you can create a custom Text box control as described here
also you can get rid of resource files by using google website Translator which translates your page on the fly. you just need to set you default language as Kannada
Upvotes: 0
Reputation: 38683
I think The Karnataka peoples speak and read some type of languages , So i don't know what type of the language needed you .
But Any type of language file can download here and you can try your self by using this sample code
Upvotes: 0
Reputation: 1
You may use unicode UTF-8 to display Kannada. Save the labels text in UTF-8 and add the following lines in your web page:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
...
</head>
Upvotes: 0
Reputation: 283
Use Localization Concept. It is done using Resource files.
The .NET framework provides support for localization. Localization deals with customizing data and resources for specific culture or locale or language. Supporting localization is important for an application if the application is required to be customizable based on the respective culture.
Following article will help you to do your task.
http://www.codeproject.com/Articles/5447/NET-Localization-using-Resource-file
Upvotes: 0
Reputation: 1546
Generically, you can use a custom font using @font-face in your CSS. Here's a very basic example:
@font-face {
font-family: 'YourFontName'; /*a name to be used later*/
src: url('http://domain.com/fonts/font.ttf'); /*URL to font*/
}
Then, trivially, to use the font on a specific element:
.classname {
font-family: 'YourFontName';
}
Upvotes: 1