Reply to Re: Determining the font characteristics of any web page?

Your name:

Reply:


Posted by Beauregard T. Shagnasty on 06/18/06 17:43

In alt.html, Peter Olcott wrote:

> "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote:
>> In alt.html, Peter Olcott wrote:
>>
>>> What is a method or set of methods that can determine all of the
>>> font characteristics of any web page?
>>
>> Use CSS. Do you know what this is at this point?
>>
> I am not writing webpages I am parsing websites. I have no choice in
> how any of these websites are written.

OK, you did not make that clear at all.

>>> By font characteristics I mean typeface name, point size, foreground
>>> color, background color, bold, underline, et cetera.
>>
>> Forget about 'point size'. Points are for printing. Use percentages
>> for font sizing (discussed almost daily in these groups). Don't use
>> pixels, either, for the oft-stated reasons.
>
> I must know the point size. Imagine that I am writing a browser, and
> must display any webpage.

Then, as I see it, you are doomed before you start. What will your
parser do when it comes to a site - with no HTML presentation - that has
"font-size: smaller" in the CSS file? The actual size of the appearance
of the text in my browser is entirely dependant on my local settings.

Points are still for printing.

--
-bts
-Warning: I brake for lawn deer

[Back to original 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

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