font face vs font type

Discussion in 'HTML & Website Design' started by aleale, Jul 23, 2008.

  1. #1
    is there any difference between font face and font type tag?
     
    aleale, Jul 23, 2008 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well now do you mean HTML or CSS? Cause they're two different things.

    In the old days of <font> tags, there was <font> (which set a font!) and there was for some people <font-face> I think it was... font-face let the designer list a row of fonts, so that if a computer didn't have the first one, it could go to the second one and so-on (just like we currently do in CSS with font-family property). I read something from Microsoft once about how font-face stopped visitors from saying No to a particular font... if they didn't want to see your site in Webdings or whatever you set, they'd have to de-install that font from their machines.

    But, likely you are hearing about the CSS font-face property. It's little-used, because too few people support it, but it let's fonts act like images in that they are replaced, fetched from a server somewheres.
    Like, you can now say
    background-image: url(blah.com);
    The image isn't part of the CSS, but is called from blah.com. With font-face you can do that too:

    @font-face {
    font-family: "Cooper Black BT";
    src: url(http://www.landofsweetsweetfonts.com/cooperblackbt.ttf) format("truetype");
    }

    The font is coming from the URL just like an image you link to comes from a url. The url could I assume be from your own machine too, if you have the software, I dunno.

    Not sure who supports this, prolly Mac programs and Safari, but we don't use it until everyone bothers to play ball.

    The other name for this topic is Web Fonts.
     
    Stomme poes, Jul 24, 2008 IP
  3. aleale

    aleale Well-Known Member

    Messages:
    1,453
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #3
    i mean to HTML

    here is an example:
    1).<font type="arial" color="blue" size="5">

    here the font displayed in browser in blue color with size of 5 and style will be arial
    2).<font face="arial" color="blue" size="5">
    and here is same..
    both attributes are used with font tag and for same function...than what is difference...where we use font "face" and where we use "type"
     
    aleale, Jul 24, 2008 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    Well, first you shouldn't be using either - in fact you shouldn't be using the font tag at all.

    That said, 'type' is completely incorrect. There is no attribute 'type' on the font tag by the specifications and it should not work in any browser. I'd be interested to know who/what/where you got the notion that was even a valid/working declaration.
     
    deathshadow, Jul 24, 2008 IP