I used the w3c code validator the code. It says
# Error no document type declaration; implying "<!DOCTYPE HTML SYSTEM>"
# Error Line 14, Column 6: end tag for "HEAD" which is not finished .
# Error Line 24, Column 79: non SGML character number 129 .
But that is not the problem. The TABMalli font is properly displayed in IE. But not in Firefox. Any ideas??? Using <font face='TABMAlli'> in the place of the span tags also gives the same result.
Its a different language. Its Tamil. I have no choice but to use that specific font. The data in the database is encoded for display using this particular font.
This code is completely valid, by w3c standards. I have the font in Firefox. But its not displaying properly in my system. IE displays it properly. Only the display in firefox, is not proper. Any ideas????
The font name is correct. Apparently, there are a lot of fonts for Tamil, and for some obscure reason, the back-end was developed to use the TAB~ fonts.
when I replaced the span tags with font face=TabMalli, it worked.
But when I plugged the part back into the project, it didn't. The culprit >>
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
When I removed this line, the font was displayed properly, but EVERYTHING else looks totally screwed up.
The project is pretty huge, and already half complete because testing was mainly restricted to IE6 ( with valid reasons ). But now, the management requires portability to Firefox also, and I have NO idea how I am going to get this working. Please help!!
Have you tried adding a meta tag identifying the character encoding that the page should use. It may be that the character encoding it is selecting by default doesn't support that font.
Unfortunately, a lot of TAB fonts do not render in Firefox and TABMalli is one of them. the closest TTF replacement is TabMaduram. It's a little shorter and slightly wider, but is also based on the Tamilnet 99 font so it renders the characters in Tamil.
If the following is unacceptable, you'll have to hack it or put separate style sheets.
AND.... of course offer the download of BOTH fonts.
* a nice place to use browser detection (client side or server side) and only offer TABMaduram.ttf to Firefox users, TABMalli.ttf for IE, Safari and Opera and maybe both to other browsers ?
I have done the browser detection and browser specific CSS.
But now there is a new problem.
There are boxes in between the text. Like ' te[]sting '. Thats in the case of IE.
In case of Firefox, arbitrary symbols, like Euro and pound start popping up in the place of the boxes.
I suppose this must have happened to lot of people. Any help guys?
Well, the CSS seems to be fine.
See, I am rebuilding a website. I traced the problem to the database.
The database served up >
And therefore my code dispalyed > my
But the older web page displays >
The original page is here : [URL="http://onlinett.tenet.res.in/Education/XStd/OnlineTT/final/src/posting/Post/sectwise.php?section=Fillup&face=TabMalli&size=5&Subject=Science_Tamil&board=Tamil%20Nadu&url=sectwi se.php|section=FillUp"]
There seems to be a discrepancy in the database.
I have not changed anything. Is it possible that the database could get corrupted in such a way??
Bookmarks