|
Posted by Peter Olcott on 06/18/06 17:27
"Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote in message
news:Pbflg.37893$mF2.24718@bgtnsc04-news.ops.worldnet.att.net...
> In alt.html, Peter Olcott wrote:
>
> I don't know where you are reading this, so I left the massive
> cross-posting intact.
>
>> 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.
>
> body {
> background-color: #f5f5f5;
> font-family: sans-serif;
> font-size: 100%;
> color: #000000;
> }
>
> For bold text:
> This is <strong>bold text</strong> in most browsers. This is
> <u>underlined</u> in most browsers, though you shouldn't use it because
> people will think it is a link. <em>Emphasized text</em> may be a better
> choice.
>
>> I am a visual C++ programmer, and will be learning .NET very soon, so
>> if there is a simplified way using either of these tools, I would
>> prefer this simpler way.
>
> It is a very simple task to add a link in the <head> of the document to
> a style sheet that will work for the entire web site.
>
> --
> -bts
> -Warning: I brake for lawn deer
Navigation:
[Reply to this message]
|