Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-27-2007, 10:10 AM   PM User | #1
smIsle
New to the CF scene

 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
smIsle is an unknown quantity at this point
Mind Bending CSS Font Anomaly

okay, I was working on a bit of hebrew code, and I found a set of fonts (Semitic Early, Semitic Middle, Semitic Late and Semitic Modern) that only work with a font face tag and *not* with a font-family css style. This only occurs in FireFox, IE works fine. Linux has a totally different issue - the set of four fonts get mashed up together into a font called Picto Hig ... hmm.

Code:
<html>
<body>
<p style="font-family: 'Times New Roman', serif;">Working With CSS</p>
<p style="font-family: 'Semitic Early', serif;">Not Working With CSS</p>
<p><font face="Semitic Middle">Working With HTML</font></p>
</body>
</html>
You can see an example of what is and isn't working above.

Does anyone know what is causing this?

I'm assuming right now that it's the font files themselves, but I didn't think that it was possible to create a font that won't show up with css!

You can get the problem fonts on this page: http://www.ancient-hebrew.org/14_ahrcfonts.html
smIsle is offline   Reply With Quote
Old 07-27-2007, 10:17 AM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Firefox sometimes doesn't read all of the fonts on the system. I notice in your last line you use Semitic Middle but in the 2nd line you use Semitic Early. TBH neither font will likely work because if they aren't installed in the user's system their is no point as they won't see your special font.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 07-27-2007, 10:30 AM   PM User | #3
smIsle
New to the CF scene

 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
smIsle is an unknown quantity at this point
Oops, I forgot to change the Middle one back - well, none of them work, either way.

Normally I wouldn't use a weird font at all, but the page I'm working on is made for people who most likely already have these fonts installed. It's a page where you type in the hebrew words you want, and then choose the font you want it in. A little PHP script then takes what they typed and outputs it in the scrambly way the fonts were put together. It's nice for all of us without a hebrew keyboard :-)
smIsle is offline   Reply With Quote
Old 07-27-2007, 08:03 PM   PM User | #4
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,468
Thanks: 0
Thanked 499 Times in 491 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Are you sure you are using UTF-8 for the page so that the characters can be recognised properly?
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 07-27-2007, 11:11 PM   PM User | #5
smIsle
New to the CF scene

 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
smIsle is an unknown quantity at this point
Stephen, it "works" the same if I append <?xml version="1.0" encoding="UTF-8"?/> to the top of the page.

This might be relevant - if I specify an xHTML or HTML 4 doctype (any type), even the font tag doesn't set the font.

I'm thinking this is just a quirk with Firefox... Kinda sad.
smIsle is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:33 AM.


Advertisement
Log in to turn off these ads.