Hello and welcome to our community! Is this your first visit?
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
    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:

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

    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

  2. #2
    Senior Coder
    Join Date
    Sep 2010
    Thanked 275 Times in 275 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. #3
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Halle (Saale), Germany
    Thanked 1,310 Times in 1,280 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