Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript -Supported Fonts

Status
Not open for further replies.

simonchristieis

Programmer
Joined
Jan 10, 2002
Messages
1,144
Location
GB
Does anyone know a way of getting a list of the supported fonts at the client ?

Any ideas ?

Simon
 
For security reasons, I doubt that you can do this. If you could, you could see what else was on the users machine.

There's always a better way. The fun is trying to find it!
 
simonchristieis,

You may have to let your CSS select the fonts to use in order of preference. For example:

style='font-family: arial,helvetica,sans-serif;'

...and/or you may provide the option to download fonts from your web site to display the right fonts at the client side.
 
Thanks for ue answers.

My intention was to create an alert page.

This page would change font / size / boldness / color to alert people, the idea was to change the fonts - but to save entering the standard fonts into a array and iterate, I wanted to create the array from usersmachine.

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top