View previous topic :: View next topic |
Author |
Message |
kev1952 -
Joined: 08 Sep 2005 Posts: 105 Location: Townsville Australia
|
Posted: Sat Feb 04, 2006 3:20 am Post subject: Font selection PHP |
|
|
I have searched far and wide and connot find what I want to know.
I want to add a font selector to a PHP script (allow the user to choose a font) that creates a selectable font list (dropdown) from the fonts available on the client machine.
Can this be done? I would like it to be purely PHP without the need for Javascript or an external data base. _________________ Cheers.... Kev
Kev's Place - http://www.kevsplace.com
Powered by Abyss X1. |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Sat Feb 04, 2006 1:10 pm Post subject: |
|
|
PHP is executed server side, javascript is executed clientside. PHP running on your server will have no knowledge of what fonts are available on the client machine - so if you want to do it without any client side scripting, no, you won't be able to do it... _________________
"Invent an idiot proof webserver and they'll invent a better idiot..." |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Feb 04, 2006 1:16 pm Post subject: Re: Font selection PHP |
|
|
kev1952,
It is impossible for a script on the server to "guess" what fonts are available on the browser's visitor. No such information is passed by browsers to servers. So you can fill your list with a standard list of fonts usually available on browsers and hope they will be there on the client side.
Here is a list of common fonts: http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|