Adobe® Edge Web Fonts

Discussion in 'Web Design and Development' started by pelsar1, Feb 22, 2014.

  1. pelsar1 macrumors newbie

    Joined:
    Feb 22, 2014
    #1
    i have put the javascript in the header..
    I have put the font name, etc in the css

    and it doesn't work. I use google fonts all of the time and they work great. Adobe has a far larger library, but I can't seem to get them to work.

    i use their example, it work, replace the fonts...and..nothing

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <script src="//use.edgefonts.net/herr-von-muellerhoff.js"></script>

    h1 {
    font-family: herr-von-muellerhoff, sans-serif;

    }
    </style>
    </head>
    <body>
    <h1>Hello World in Source Sans Pro</h1>
    </body>
    </html>
     
  2. olup macrumors 6502

    Joined:
    Oct 11, 2011
    #2
    Call the h1 tag like so:

    h1 {
    font-family: "herr-von muellerhoff", sans-serif;
    }
    Always put the non-system fonts in parentheses,you have to do this in google fonts as well, also you need to call the js with http: in front of it. it should work then.
     
  3. pelsar1 thread starter macrumors newbie

    Joined:
    Feb 22, 2014
    #3
    tried that:

    h1 { font-family: 'herr-von muellerhoff', sans-serif; }

    and

    h1 { font-family: "herr-von muellerhoff", sans-serif; }

    but this is not clear;

    also you need to call the js with http: in front of it. it should work then.

    isn't it in front already?
     
  4. bntz313 macrumors 6502

    Joined:
    Jul 11, 2007
    #4
    try: h1 { font-family: herr-von muellerhoff, sans-serif; }
     
  5. Darth.Titan macrumors 68030

    Darth.Titan

    Joined:
    Oct 31, 2007
    Location:
    Austin, TX
    #5
    None of the responses so far will help.
    Your code is fine, you just forgot the opening <style> tag.

    PHP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <
    html xmlns="http://www.w3.org/1999/xhtml">
    <
    head>
    <
    script src="//use.edgefonts.net/herr-von-muellerhoff.js"></script>
    <style>
    h1 {
    font-family: herr-von-muellerhoff, sans-serif;

    }
    </style>
    </head>
    <body>
    <h1>Hello World in Source Sans Pro</h1>
    </body>
    </html>
     

Share This Page