1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

No font family

Discussion in 'CSS' started by ErikBos, Nov 23, 2005.

  1. #1
    Hello I want to juse a font that is not regular to other people.
    So Ive uploaded the font to the same dir as I have my CSS.

    In my CSS i have the fiollowing code:
    font-family:"myfont";

    Now when I look at it on my own pc its o.k but from any other pc the font is not visuble on the screen.

    Does anyone know what I'm doing wrong?

    Kind Regards Erik Bos
     
    ErikBos, Nov 23, 2005 IP
  2. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You are most likely using a custom font that is not installed on the other machine. Best bet is to stick with the standard fonts and create images of text if you must have a custom font. Good luck
     
    ServerUnion, Nov 23, 2005 IP
  3. tresman

    tresman Well-Known Member

    Messages:
    235
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    138
    #3
    It won't work. You CAN'T do that with CSS. Using specific fonts (non regular ones) is something I wouldn't recommend to do.

    However, for some cases, such as titles or so, search Google for SFIR (Scalable Inman Flash Replacement).

    Tip: www.mikeindustries.com is the site.
     
    tresman, Nov 23, 2005 IP
  4. Nemanja_nq

    Nemanja_nq Peon

    Messages:
    86
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes you can :D
     
    Nemanja_nq, Dec 4, 2005 IP
  5. tresman

    tresman Well-Known Member

    Messages:
    235
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    138
    #5
    An amazing reply.Would you mind to elaborate please?
     
    tresman, Dec 4, 2005 IP
  6. Nemanja_nq

    Nemanja_nq Peon

    Messages:
    86
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    off course I can, forums are all about that, wright ? :)

    This is for css file, in html or out.

    <style type="text/css" media="screen, print">
    @font-face {
    font-family: "Formata";
    src: url("http://yoursite/fonts/yourfont")
    }
    </style>
    HTML:
    this is is for "calling" in the html, offcourse you can do this in css too font-family tag, off course.

    h1 { font-family: "yourfont", "arial", "verdana", "helvetica" }
    HTML:
    Here it is. Pure css.
     
    Nemanja_nq, Dec 4, 2005 IP
  7. Nemanja_nq

    Nemanja_nq Peon

    Messages:
    86
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Oh, also this is not very practical to use for blocks of text, only few lines, or H tags.


    But this is answer on Ericbos topic.
    But offcourse you can use SIRF ( even on text blocks, not recommed too, but you can ) or Javascript to replace your htags with images.

    There are many options.

    Hope I help you. :)
     
    Nemanja_nq, Dec 4, 2005 IP
  8. tresman

    tresman Well-Known Member

    Messages:
    235
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    138
    #8
    Well, I could be wrong, but will be this cross browser compatible? I think is not.

    While this can be part of the CSS2 specifications, I do not think it's going to work in both IE and Firefox/Mozilla, which IMHO are the 2 first requisites.
     
    tresman, Dec 4, 2005 IP
  9. Nemanja_nq

    Nemanja_nq Peon

    Messages:
    86
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    An amazing reply. :D

    Like most things in standards, you need to work you way in.
    This is way you need to use stuff like javascript etc.

    But point is that it can be done.
     
    Nemanja_nq, Dec 4, 2005 IP
  10. Shodan5

    Shodan5 Guest

    Messages:
    53
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    That is amazing, I will have to try that sometime!
     
    Shodan5, Dec 5, 2005 IP
  11. Nemanja_nq

    Nemanja_nq Peon

    Messages:
    86
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Yes, its basic css.
    I recomend using javascripts that replace your h tag with image , so in code you have only:

    <h1>Title</h1>

    And on site you have you graphic picture/text, if picture don`t load up, you still have your text ( h tag ) which you can also format using css, what you can ask more ?

    Glad I help you Shodan !
     
    Nemanja_nq, Dec 5, 2005 IP
  12. ErikBos

    ErikBos Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I know it could be done some guy showed me once but I had forgoton the technique.

    Thanx for the replies.:D
     
    ErikBos, Dec 13, 2005 IP
  13. Nemanja_nq

    Nemanja_nq Peon

    Messages:
    86
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #13
    no problem ! :)
     
    Nemanja_nq, Dec 13, 2005 IP