PC Review


Reply
Thread Tools Rate Thread

Determining the font characteristics of any web page?

 
 
Peter Olcott
Guest
Posts: n/a
 
      18th Jun 2006
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.


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      18th Jun 2006
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"Peter Olcott" wrote:

> 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.
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different characteristics for letters of same font teachtiro@yahoo.com Microsoft Word Document Management 2 25th Jul 2005 05:02 PM
Different characteristics for letters of same font teachtiro@yahoo.com Microsoft Word New Users 2 25th Jul 2005 05:02 PM
Different characteristics for letters of same font teachtiro@yahoo.com Microsoft Word Document Management 0 21st Jul 2005 11:04 PM
Different characteristics for letters of same font teachtiro@yahoo.com Microsoft Word New Users 0 21st Jul 2005 11:04 PM
Different characteristics for letters of same font teachtiro@yahoo.com Microsoft Word New Users 0 21st Jul 2005 10:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:53 AM.