|
Posted by Neredbojias on 06/19/06 01:59
To further the education of mankind, "Peter Olcott" <olcott@att.net>
vouchsafed:
>>> 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.
>
>>> 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.
Display where? If in users' browsers, just keyphrase-identify all the
various valid (and some invalid) possible font-designators and copy their
attributes verbatim. However, if your process depends upon determining
each user's browser default font-size, etc., to accomplish its task, that
really isn't possible.
--
Neredbojias
Infinity has its limits.
Navigation:
[Reply to this message]
|