shane07 Posted January 14, 2008 Share Posted January 14, 2008 Hello to all How can the php script be used to install a font file on client side when/before page is loaded? Is it possible to check if the client 's system has already installed the font or not? Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/ Share on other sites More sharing options...
shane07 Posted January 14, 2008 Author Share Posted January 14, 2008 Anybody got the idea? Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438703 Share on other sites More sharing options...
tinker Posted January 14, 2008 Share Posted January 14, 2008 Not that i've ever got around to doing it, but you can download (transfer with your page) a font using CSS. Maybe you can query the system / browser using JS. But PHP is not clientside! Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438743 Share on other sites More sharing options...
dooper3 Posted January 14, 2008 Share Posted January 14, 2008 As far as i'm aware there's no way to do this with php, that's why in css you declare a "font-family" of more than one font, just in case other users don't have the first choice of font on their machine. If you're only using the custom font for section headings then you could make images instead and upload them, but don't do that for body text otherwise search engines will be scuppered (nice word). Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438749 Share on other sites More sharing options...
tinker Posted January 14, 2008 Share Posted January 14, 2008 how do you you sink a search engine? Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438759 Share on other sites More sharing options...
dooper3 Posted January 14, 2008 Share Posted January 14, 2008 lol, sorry, probably not the best word to use. But you're thinking of skuttled, not scuppered. But for good measure - to sink a search engine you need 5 cheerleaders, a high powered potato gun and two gallons of marmalade. I won't insult your intelligence by telling you how to use all of those items, that's obvious, we all know! Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438763 Share on other sites More sharing options...
tinker Posted January 14, 2008 Share Posted January 14, 2008 i'd let the cheerleaders use me Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438765 Share on other sites More sharing options...
spikypunker Posted January 14, 2008 Share Posted January 14, 2008 me too, with the marmalade thrown in... Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438776 Share on other sites More sharing options...
dooper3 Posted January 14, 2008 Share Posted January 14, 2008 To bring it vaguely back on topic... 1) PHP won't allow you to install fonts on a user's machine as PHP runs server-side, not client-side 2) You fire the potato gun at the cheerleaders, then get them to rub marmalade into each other to soothe the bruising. Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438782 Share on other sites More sharing options...
tinker Posted January 14, 2008 Share Posted January 14, 2008 wouldn't the potatoes just bounce harmlessly off the squiggy bits? Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438792 Share on other sites More sharing options...
Lamez Posted January 14, 2008 Share Posted January 14, 2008 you need to put in your CSS, after you upload it to the webserver for an example you upload a font in style dir. called crazyfont.tff in CSS put font-family: arial, "crazyfont", sans-serif; any help? Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438806 Share on other sites More sharing options...
Grant Holmes Posted January 14, 2008 Share Posted January 14, 2008 Avoiding the whole cheerleader thing.... Then how do the "Captcha" things work? They use a "non-system" font. (Seems like the one I set up, I actually uploaded the CaptchaFont.TFF file to the web folder??) I've got a site where I have a script running that shows various international times: http://www.martiniinthemorning.com/martinitime.php I've wanted to use a more "digital" font (which I have, but know you may not). So how can I use MY font on that page? Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438852 Share on other sites More sharing options...
trq Posted January 14, 2008 Share Posted January 14, 2008 Captcha's use an image. Thats the whole point, otherwise the text would simply show up in the source. Quote Link to comment https://forums.phpfreaks.com/topic/85917-installtion-of-font-file-on-page-loading/#findComment-438881 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.