Hello,
I am developing a page. I am stuck on a problem. The problem is that, my webpage is in HTML, and i am creating a table on that.
in that few contents are in English, but some contents are in HIndi. But Whenever i tries to write in hindi, it shows something else.
I ahve done so much googling, but cannt get a single solution.
So, i want to know is this possible that i can write only specific content in Hindi, and rest page will b shown in English and how?
thanx in advance.


Rahul BansalRank #143 · 15.9K reputationPosted Aug 19, 2014, 3:21 AM EDT
Priyank Khare154 reputationPosted Aug 19, 2014, 3:26 AM EDT
Deepak VermaRank #672 · 3.6K reputationPosted Aug 22, 2014, 12:09 AM EDT
It's OK. Actually, you see this because of default font-family. you should use Hindi font for this particular paragraph or div or whatever tag you're using.
Edit: Be careful when using non-system fonts. When your application will be live... Your users may not have these fonts installed on their system. So, now the good idea is to use font-face instead of font-family.
Priyank Khare154 reputationPosted Aug 22, 2014, 12:22 AM EDT
In short,
S.No. Name Conatct
-----------------------------------------------------
1. Amit (should be come in English) 125465
2. Priyank(should be come in Hindi) 68749865
How can i do that..?
Deepak VermaRank #672 · 3.6K reputationPosted Aug 22, 2014, 1:01 AM EDT
<html>
<head>
<title>title>
<style>
@font-face
{
font-family: 'hindi';
src: url('/demo/fonts/k010.TTF');
font-weight: normal;
font-style: normal;
}
.hindifont
{
font-family: hindi; font-size:20px;
}
style>
head>
<body>
<div class="hindifont">
vki dSls gSaA
div>
body>
html>
Output:
Priyank Khare154 reputationPosted Aug 22, 2014, 2:19 AM EDT
Deepak VermaRank #672 · 3.6K reputationPosted Aug 22, 2014, 3:11 AM EDT
Do you forget to include the font file?
Change the src in css accordingly.
src: url('/demo/fonts/k010.TTF');
Check the "Console" in Browser Developer Tools for error (file not found if src is not set correctly).
Priyank Khare154 reputationPosted Aug 22, 2014, 3:25 AM EDT
Deepak VermaRank #672 · 3.6K reputationPosted Aug 22, 2014, 3:25 AM EDT
Priyank Khare154 reputationPosted Aug 22, 2014, 3:30 AM EDT
Deepak VermaRank #672 · 3.6K reputationPosted Aug 22, 2014, 3:38 AM EDT
I don't know what's wrong by your side. You've to check for path in Developer Tools in Chrome (F12 >> Console >> Refresh Web Page). Verify, there is no error like 'file not found'.
Hope it'll help.
Priyank Khare154 reputationPosted Aug 22, 2014, 3:43 AM EDT
Deepak VermaRank #672 · 3.6K reputationPosted Aug 22, 2014, 3:49 AM EDT
Priyank Khare154 reputationPosted Aug 22, 2014, 3:54 AM EDT
Deepak VermaRank #672 · 3.6K reputationPosted Aug 22, 2014, 4:05 AM EDT
Deepak VermaRank #672 · 3.6K reputationPosted Aug 22, 2014, 4:19 AM EDT
http://www.fontsquirrel.com/tools/webfont-generator
Don't forget to change path, font-family and class names accordingly.
Cheers! have a nice day.