Jump to content

I want to use Tamil font in my web page.


voip03

Recommended Posts

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>Untitled Document</title>

</head>
<style type="text/css">
@font-face {

font-family: 'Bamini Tamil';
'
src: url('www.kvijayanand.zzl.org/fonts/bamini.ttf');

}

.p{
font-family: Bamini Tamil, Helvetica, sans-serif;
}

</style>

<body>



tamil font <p>khtPuu; JapYk; ,y;yk பாமினி தமிழ் kjhckfk.fhh</p>
</body>
</html>


Link to comment
Share on other sites

font-family: 'Bamini Tamil';
'
src: url('www.kvijayanand.zzl.org/fonts/bamini.ttf');

 

remove the single quote

like so:

font-family: 'Bamini Tamil';
src: url('www.kvijayanand.zzl.org/fonts/bamini.ttf');

small tip: validate your css here: jigsaw.w3.org/css-validator/

Link to comment
Share on other sites

Thank you cssfreakie

that link is grate help full.

 

But still I am stuck with tamil font.

did you remove that single quote? and did you validate your css?

What you showed apart from the extra single quote should just work (if the file is there and the browser supports @font-face)

 

does this link maybe help extra? http://www.evotech.net/blog/2010/01/font-face-browser-support-tutorial/

Link to comment
Share on other sites

<html>
<head>
<title>Tamil Text Sample</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
@font-face {
font-family: "Bamini Tamil";src: url("www.kvijayanand.zzl.org/fonts/bamini.ttf");}
p{
font-family: "Bamini Tamil", Times, serif;
}
.style1 {font-size: 9px}
</style>
</head>
<body>
<h3>Tamil Text Samples</h3>
<p>,y;yk</p> 
<span class="style1">அம்மா</span>
</body>
</html>

 

This is my new code, i can not get it work.

Link to comment
Share on other sites

maybe you want to try out one of the standard generators. I can get it working on my computer, so I am pretty sure so can you.

Use this generator: http://www.fontsquirrel.com/fontface/generator

Since i don't have a license I won't link to the zip file this thing creates, but you can do that yourself of course. takes 1 min max.

 

Link to comment
Share on other sites

Look I didn't say 'without any modification' ... Also the context in which I said it is working was when i proposed to use a generator

(upload your .ttf, download zip, test out file, voila it works)

 

Now, Those characters I haven't got a clue where those come from. But I am about 5000% sure css has nothing to do with that. Why would it?? unless you use the content property which you don't.

Did you try: http://www.fontsquirrel.com/fontface/generator ?? If you did, you would have found out that it worked.

 

cheers of to the pub!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.