redarrow Posted August 17, 2006 Share Posted August 17, 2006 if make a folder fonts and get a good font how do i add the font to use it cheers.eaxmaplenow how to get the font to be a working font cheers.[code]<?php$fonts="fonts/";$message="my name is redarrow";$result=$message&$font;echo $result;?>[/code] Quote Link to comment Share on other sites More sharing options...
Barand Posted August 17, 2006 Share Posted August 17, 2006 The browser, which is running on the user's PC, only has access to fonts on that user's PC. IF you want to display using fonts from the server you need to put the text in an image. Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 17, 2006 Author Share Posted August 17, 2006 can you kindly show me an example please and were to get the font from cheers. Quote Link to comment Share on other sites More sharing options...
Barand Posted August 17, 2006 Share Posted August 17, 2006 Well, the last time you asked me for an example was for a calendar script. When I had time (a couple of hours, and not the 10mins you believed) I wrote and then posted the script and sent you a PM to tell you it was there. As I never received any acknowledgement for my efforts, you are a liitle low on credit for my time. Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 17, 2006 Author Share Posted August 17, 2006 i didnt even know you sent the calender code thank you so much sorry about not responding thank you.i have only looked now and cheers sorry for late reply cheers agin.very cleaver code for the cal cheers grate. Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 17, 2006 Share Posted August 17, 2006 You can use [url=http://www.fontfreaks.com]FontFreaks[/url] and can find some nice free ttf fonts. I am sure that you already know how to use a font in an image, right?Good luck,Tom Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 17, 2006 Author Share Posted August 17, 2006 not yet please help sorry. Quote Link to comment Share on other sites More sharing options...
trq Posted August 17, 2006 Share Posted August 17, 2006 There are some posibilities in regard to embeding fonts in html, but really, this has nothing to do with php. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 17, 2006 Share Posted August 17, 2006 you can 'force' the font to be downlaoded!Now I tried this a while back and it only worked in IE at the time but some reading did indicate that other browsers would take it up.....You will need to get the MS WEFT tool ([url=http://www.microsoft.com/typography/web/embedding/weft3/]http://www.microsoft.com/typography/web/embedding/weft3/[/url])create an .eot file from teh font you need.in your css put the following@font-face { font-family: "New Font"; src: url(http://www.ursite.com/font/newfont.eot); }New Font can be anything you want of course - you will define that....NOW any text on your site that you wish to use that font on ( example here is a title header)the html....<h1 id="title">YOUR TITLE</h1>the css...h1#title { font-family: "New Font", Verdana, sans-serif; }When a user visits the page and the don't have 'New Font' the page will display in the next font in the list BUT as soon as the font has been downloaded the page will refresh with your new font - and shoudl be cached for the next time they visit.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.