Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS set specific TTF in CSS

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24295
    odil
    Member

    hi all,
    i just registered css-tricks forum this morning :D
    i want to ask about how to set specific TTF in CSS
    i have searched in google and find the answers
    but when i do it, nothing happen, so i want to discuss it with css master here, pls help me ;)

    here the html code – INDEX.HTML

    Code:




    Untitled

    Donec ullamcorper fringilla eros.

    Fusce in sapien eu purus dapibus commodo. Cum sociis natoque penatibus et magnis dis parturient montes,
    nascetur ridiculus mus. Cras faucibus condimentum odio. Sed ac ligula. Aliquam at eros.
    Etiam at ligula et tellus ullamcorper ultrices.


    and here the css code – FONT.CSS

    Code:
    @font-face {
    font-family: “Pepsi”;
    src: url(pepsii.ttf) format(“truetype”);
    }

    h1 { font-family: “Pepsi”; }

    i put all files in 1 folder (index.html, font.css, pepsii.ttf)
    i am looking forward for your help, guys…

    regards,
    odil

    #54745
    ikthius
    Member

    only in CSS3
    http://www.css3.info/preview/web-fonts-with-font-face/

    not fully supported, however, you could use flir http://facelift.mawhorter.net/

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.