Determining the font characteristics of any web page?

  • Thread starter Thread starter Peter Olcott
  • Start date Start date
P

Peter Olcott

What is a method or set of methods that can determine all of the font
characteristics of any web page? By font characteristics I mean typeface name,
point size, foreground color, background color, bold, underline, et cetera. 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.
 
A "web page" by itself has no font descriptor information unless the
deprecated "Basefont" tag is being used. You can get font information from
individual elements in two possible ways:
1) the element has a "font" attribute.
2) the element has a CSS style class or inline style attributes that
determine the font-family, size, style etc.

These attribute need to be examined using the HTML DOM with client-side
script typically.
Hope that clarifies,
Peter
 
Back
Top