Submit Your Article Forum Rules

Results 1 to 6 of 6

Thread: problem with font and font sizes...

  1. #1

    problem with font and font sizes...

    Hi,

    I made a web site for some friends, and we wanted to use a font called Vixar. So I used Vixar as the main font, and courier new as the first generic alternative. However, Vixar has smaller character sizes than courier by default, so to get a readable font size I had to use a size of 20px - which of course looks bad when viewed in Firefox or Opera, as they don't support the @font-family CSS rule which loads an Open Type version of Vixar.

    So, my question is this: Is it possible to, via CSS, apply one font/font-size to some text if the font is supported and another font/font-size to the same text if it is not?

    Thanks...
    Regards,
    Joachim Dyndale

  2. #2
    Never mind... Just found out that using ex instead of px for font sizes solved it. Duh! :)
    Regards,
    Joachim Dyndale

  3. #3
    WebProWorld MVP Webnauts's Avatar
    Join Date
    Aug 2003
    Location
    European Community
    Posts
    9,028
    Quote Originally Posted by jdyndale
    Never mind... Just found out that using ex instead of px for font sizes solved it. Duh! :)
    I am convinced that using ex is not* the best solution.
    You better use em, or even better %.

    And by the way, I wish a very happy and successful New Year.

    ---
    * correction

  4. #4
    Actually, IE, Firefox and Opera display the text in different sizes when using a relative size unit and the design on the site in question it's impossible to get a size that cosistantly looks good across browsers.

    Too bad Firefox and Opera don't support the @font-family CSS rule. It's a VERY useful rule....
    Regards,
    Joachim Dyndale

  5. #5
    Junior Member
    Join Date
    Jan 2006
    Posts
    7
    what's an ex?

  6. #6

Similar Threads

  1. CSS Font Color Rendering Problem
    By adachi in forum Graphics & Design Discussion Forum
    Replies: 8
    Last Post: 06-01-2008, 01:03 AM
  2. Problem with Arial Font on PC
    By dharrison in forum IT Discussion Forum
    Replies: 1
    Last Post: 02-10-2006, 06:28 AM
  3. Illustrator/"Default Font Substituted for Missing Font&
    By ADAM Web Design in forum Graphics & Design Discussion Forum
    Replies: 3
    Last Post: 06-10-2005, 02:41 PM
  4. MSIE 6 Font Problem
    By webmasterjunkie in forum IT Discussion Forum
    Replies: 2
    Last Post: 05-05-2005, 02:07 PM
  5. Relative Font Sizes????
    By mjstrand in forum Graphics & Design Discussion Forum
    Replies: 1
    Last Post: 05-04-2004, 06:47 PM

Posting Permissions

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