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 10 of 10
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    592
    Thanks
    0
    Thanked 1 Time in 1 Post

    Font Embedding!!

    1>>Font Embedding In a Webpage

    Hi masters,

    The following CSS font embedding code doesn't work for me. Please debug it. Thank you!


    Code:
    <style>
    @fontface{url(Virdimir.ttf);}
    </style>

  • #2
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I didn't know you could embed a font with CSS alone...

    Where did you get the information from?

  • #3
    Regular Coder
    Join Date
    Jul 2004
    Location
    France
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #4
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ah, if only it were that easy...

    Web pages so that when an Internet Explorer user views the pages they'll see them displayed in the font style contained within the font object.
    from the weft homepage...ugg .. Anyways, there are a few ways around it...SiFR, IFR etc. google 'em..

    Mainly they involve using flash to embed...while still remaining accessible. Good luck
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #5
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Weft is OK provided you are only using some basic HTML and CSS in the page if you go any further adding Javascript or stuff like that it begins to 'play' with the page. I also have had some issues with IE refusing to load multiple fonts produced by Weft, instead it only loads one font each time you access a page and doesn't appear to cache them.

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Font embedding

    To respond to the original poster:

    First of all, you've misspelled the property: it's "@font-face".
    Second, this is part of a CSS3 working draft, and there's no hope in heck that this will be supported by a practical number of browsers any time soon.
    Other techniques for font embedding share the same poor support and can't really be relied upon; besides, you have to ask yourself if you want to expose your visitors to downloading TTF files all the time.

    I'd say, forget about font embedding for quite some time; stick where appropriate to image replacement techniques as Jalenack already indicated.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #7
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    lol. I remember back on the WA forums when I was a n00b.. I brang up this and I got a lecture and a half.

    Stick with standard fonts!
    Omnis mico antequam dominus Spookster!

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Fonts galore

    Don't get me wrong: it would be great if web designers would have a practical, well-supported, standardized way to supply more "exotic" fonts to enhance their designs; untill such a way establishes itself, though, I just wouldn't bet on it.
    Let's hope Mozilla, Opera and the likes pick up CSS3 quickly as soon as it's viable.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #9
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Well on the issue of usability I don't think that developers being able to use their own non-standard fonts is just disaster waiting to happen.
    Omnis mico antequam dominus Spookster!

  • #10
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    But wait! Says I.

    I just installed MT on my system, and they suggested that the files either go in the cgi-bin or in a directory not accessible to the browser, such as the folder just above the "public_html" folder (or something similar). "Ah," says me, "I never thought of that before."

    Which makes me wonder, why couldn't you have custom fonts installed in that directory, and access those fonts from the stylesheet?


  •  

    Posting Permissions

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