Re: Determining the font characteristics of any web page?



Peter Olcott wrote:
"Jonathan N. Little" <lws4art@xxxxxxxxxxxxx> wrote in message news:f0738$44985634$40cba77f$10133@xxxxxxxxxxx
Peter Olcott wrote:

Wrong assumption. This will be a software product running on the client machine.

Okay, well it is not clear what you are trying to do.

1) Discover all the settings of the users browser?
2) Discover all fonts a user has on his system?
3) Discover all specified fonts on a specific webpage?
4) Discover all specified fonts on all webpages the user is viewing?

#3 is easy, view source HTML and style***.

#1,2,4 are kind of creepy, #4 especially. Wouldn't sell me on your product.

I will only need this for the specific web pages that the user invokes my program on, yet these can be any arbitrary web-page. I must have the exact details of the FontInstance. If the HTML says small, I need to know the precise point size. This must work for any web presentation language, not just HTML.

Well that is where your problem lies, font size it a complex relation of what is defined on the website and what is set in the user settings of the browser and what is the setting of the browser default AND what is available on the user's system. Another thing is are your looking for the size as displayed on the screen or printed on the paper?

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
.