Results 1 to 8 of 8
  1. #1
    2 Star Lounger
    Join Date
    Feb 2003
    Location
    Warwick, Warwickshire, England
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using a non standard font

    When developing a web page in which I use a none standard font, is there any method of forcing this font to be displayed on the computer which is viewing it across the internet. I know that I can use a graphic image - I have done this for headers and menu selections, but wondered if there was any way to do this for the text content too.

  2. #2
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Using a non standard font

    Yes it is possible using the import selector in the style tags. You will need to place the font in a specific location.


    <style type="text/css" MEDIA="screen, print">
    @font-face {
    font-family: "jezza";
    src: url("http://site/fonts/jezza")
    }
    h1 { font-family: "jezza", serif }
    </style>
    Jerry

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Using a non standard font

    The jezza font must be a bear to work with... <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

  4. #4
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Using a non standard font

    Just a little caveat to be aware of.

    Browser support for this method:

    IE4 - none
    IE5 - full
    IE5.5 - full
    IE6 - full
    Mac_IE5 - none
    Mozilla0.6 - none
    Mozilla1 - none
    Mozilla1.4 - none
    Mozilla1.6 - full
    Mozilla1.7 - full
    NN4 - none
    NN6 - full
    NN7 - full
    Jerry

  5. #5
    5 Star Lounger jujuraf's Avatar
    Join Date
    Jun 2001
    Location
    San Jose, California, USA
    Posts
    1,061
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Using a non standard font

    But ultimately, doesn't the viewer have the control to choose whether or not to use the site's fonts vs. their own thus ignoring whatever code is forced in the page? I realize most people never change any of the default settings in a browser (or on their PCs for that matter) but wanted to be clear for us web developers that any coding we do can often be overriden by the end user so don't expect the site to look like we designed it. (At least code relating to what the page looks like)

    Comments plz?

    Deb

  6. #6
    Super Moderator
    Join Date
    Dec 2000
    Location
    Renton, Washington, USA
    Posts
    12,560
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Using a non standard font

    If the font is NOT installed on the user's computer, then a "Generic" substitute will be used.

    Now running HP Pavilion a6528p, with Win7 64 Bit OS.

  7. #7
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Using a non standard font

    Hi Debs

    If properly controlled using styles, no they cannot change the font face, the size or colour. It is only if a style is not coded that the site will be shown in the browsers default font.

    The method I have outlined above is not at all good as the @method can cause problems in some instances, especially in the older IE's called a FOUC or Flash Of Unstyled Content and if this is to not happen then the link in the style must be correct.
    Jerry

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Using a non standard font

    Most browsers have "accessibility" features that let users override the author's choices, yes. So you lose some control. But I'm sure you don't want to prevent someone who feels they need to do this from doing so! If you are insistent on a particular look--and you would not be the only one--you can turn to PDF, Flash and image files.

Posting Permissions

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