You are here: Re: Determining the font characteristics of any web page? « HTML « IT news, forums, messages
Re: Determining the font characteristics of any web page?

Posted by Peter Olcott on 06/20/06 19:18

"Philip" <NikitaTheSpider@gmail.com> wrote in message
news:NikitaTheSpider-78823A.15105420062006@news-rdr-02-ge0-1.southeast.rr.com...
> In article <gdWlg.8644$f76.988@dukeread06>,
> "Peter Olcott" <olcott@att.net> wrote:
>> If it would be easier to do, I could write some code that runs in the context
>> of
>> the browser and then pass the results to the code that needs it that does not
>> run within the context of the browser.
>
> I see two possibilities. First, you might be able to get this
> information via Javascript. This page might point you in the right
> direction:
> http://www.quirksmode.org/dom/getstyles.html
>
> You might also want to consider creating a document and using Javascript
> to measure the size of the text in it.
>
> The second possibility is to write a browser plugin which means it is
> time for you to start hunting through the Plugin Writer's Guides for the
> browsers you intend to support. It is up to the individual browser
> whether or not they expose the kind of information you're looking for.
>
> Neither one of these methods is very portable from one browser to
> another. The first one might be somewhat portable, but the second is not
> at all.

I need to know this on a web-page by web-page basis. Since each web-page is free
to determine how it will display itself, I need a very generic method. I guess
that I would need to start with an exhaustively comprehensive list of every
possible way that any possible web-page could specify any of this information.

>
> HTH
>
> --
> Philip
> http://NikitaTheSpider.com/
> Bulk HTML validation, link checking and more

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация