Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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!||||

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 :-)

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,628
    Thanks
    0
    Thanked 648 Times in 638 Posts
    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/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #5
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •