wizzkid Posted July 24, 2006 Share Posted July 24, 2006 Hi! I am wondering if a font type can be uploaded and used on html.Upon designing a webpages, we/I used a specific font/s let say "arial". and when serve to the inetrnet and somebody tried to access the site, but that user doesnt have the font use, it will automatically use its defualt text right?Is there a way to upload the specific font and put a script on the page to use the uploaded font?Please let me know how to do it Thanks a lot. Quote Link to comment https://forums.phpfreaks.com/topic/15517-font-on-html-pages/ Share on other sites More sharing options...
wildteen88 Posted July 24, 2006 Share Posted July 24, 2006 You should provide a selection of fonts, eg for your CSS:[code]body { font-family: Arial, Verdana, Helvetica, sans-serif;}[/code]The browser, will use Arial if its available, else it try to use Verdana if its available, after that it'll try the next font and the one after that etc. But it is not recommened for you to use non-standard fonts for text in webpages, however its fine for images.However if you want to use a non-standard font you can do, but I forgotten the methodEDIT the method is called embeded fonts, using [url=http://www.microsoft.com/typography/web/embedding/weft2/default.htm?fname=%20&fsize=]WEFT[/url] Quote Link to comment https://forums.phpfreaks.com/topic/15517-font-on-html-pages/#findComment-63035 Share on other sites More sharing options...
JA Posted July 24, 2006 Share Posted July 24, 2006 Yes, as if users don't have the font that you've used; they can't see it. Quote Link to comment https://forums.phpfreaks.com/topic/15517-font-on-html-pages/#findComment-63170 Share on other sites More sharing options...
Moron Posted August 25, 2006 Share Posted August 25, 2006 I've always gotten around this by making the text an image. I use the font/color/size I want in Windows Paint, then crop it out and make the background transparent with another program. That way, the text (image) will be presented in your page, whether the viewer has your font or not. Quote Link to comment https://forums.phpfreaks.com/topic/15517-font-on-html-pages/#findComment-80407 Share on other sites More sharing options...
syed Posted August 25, 2006 Share Posted August 25, 2006 Read this, hope it helps, webserver is appache http://xmlgraphics.apache.org/fop/0.20.5/fonts.html Quote Link to comment https://forums.phpfreaks.com/topic/15517-font-on-html-pages/#findComment-80475 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.