Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Binding in Fonts to CSS

    Hi together,
    Sorry for my crappy english so far.
    first i want to display you my code:

    <HTML>
    <HEAD>
    <style type="text/css" media="screen, print">
    @font-face { font-family: testschrift;
    src: url(bottomsup.tff);}
    h1{font-family:testschrift, arial;}
    </style>
    </HEAD>
    <BODY>
    <h1>test du hund</h1>
    </BODY>
    </HTML>

    I just want to bind in a new font to my page. Ive watched some Tutorials and there it looks same like here. (Sometimes with a format behind the SRC: - didnt worked ) Also ive tryed to put everything into ' ' but it changed nothink.
    With other font files, its not workling too... *knocking my head on the table*
    (for sure ive tryed it also with other browsers than FF / Chrome and IE aren't showing it, too)

    Thank you for your Help
    Baumi187

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,916
    Thanks
    15
    Thanked 227 Times in 227 Posts
    Well, you're going to have to learn about @font-face, Microsoft does fonts differently than everyone else, so you have to go through extra steps to make it work in IE. There's plenty of good tutorials on the web about using it. I'd start with going to the Font Squirrel site
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,639
    Thanks
    6
    Thanked 1,004 Times in 977 Posts
    Here is something for you to read: http://www.fontspring.com/blog/furth...etproof-syntax

    But besides all that, make sure your file path to the font file is correct. Your above example assumes the font to be in the same directory as the CSS file. Can you confirm that?


  •  

    Posting Permissions

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