Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: style.css font size question

Reply
Thread Tools

Re: style.css font size question

 
 
dp
Guest
Posts: n/a
 
      07-06-2003


"Steve Pugh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "William Tasso" <(E-Mail Removed)> wrote:
> >Steve Pugh wrote:
> >> "William Tasso" <(E-Mail Removed)> wrote:
> >>>
> >>> 1px is 1 pixel = 1/72 inches 72 pixels to the inch. It's a
> >>> printing term
> >>
> >> No. That's points.
> >> 1 pixel, according to the CSS spec a pixel is the length created on
> >> the display by a viewing angle of about 0.0227 degrees. Yeah right.
> >> Browsers treat pixel units as equivalent to screen pixels.

> >
> >The above rough working knowledge has been sufficient to get me along,

but
> >clarification is always good - thanks for the info.

>
> Want any more info? Here it comes....
>
> When the Mac was first released it was an important point (sorry) that
> 1 point = 1 pixel. This was ideal for the DTP age afterall. Hence the
> Mac had a virtual resolution of 72dpi (i.e. 72 pixels in screen = 1
> inch when printed out, not 72 pixels per screen inch).
>
> Windows uses 96dpi instead with the normal small fonts. Or 120 dpi
> with large fonts.
>
> Older Mac browsers followed the 72 dpi rule - so in versions up to and
> including NN4.x and IE4.5 1pt = 1px.
> Windows browsers and new Mac browsers (IE5 and Gecko based ones)
> use 96dpi by default. So 1pt = 4/3 px.
>
> On some operating systems the dpi is under user control (and in some
> browsers - the dpi setting in Mozilla seems to only work in linux
> though).
>
> Most of these browsers have their factory default font size set to
> 12pt. So in the older Mac browsers the factory default font comes out
> as 12px tall whilst in Windows and newer Mac browsers it comes out as
> 16px tall. (Mozilla sets it to 16px directly, finally breaking away
> from the DTP paradigm.)
>
> Safari is an exception. It's factory default font setting comes out as
> 14px tall. I don't know whether this is because it uses a different
> dpi setting (84dpi?) or a different default font size.
>
> And on top of all that the user can of course change the default font
> size; and in some case set a minimum size as well (Opera is annoying
> in that the default size is set in pt but the minimum size is set in
> px). Oh, and then there are user stylesheets.
>
> And people actually wonder why leaving the font size well alone is
> anything other than the best thing to do?
>
> Steve
>
> --
> "My theories appal you, my heresies outrage you,
> I never answer letters and you don't like my tie." - The Doctor
>
> Steve Pugh <(E-Mail Removed)> <http://steve.pugh.net/>


Excellent post Steve.
This ones going in my save file!.
dp


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
creating font with fixed font size andreasbell Software 1 08-30-2010 09:39 PM
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
Printing with specific font-type and font-size wial Java 2 11-27-2008 05:30 PM
Windows XP explorer font and font size Lookout Computer Support 0 06-04-2006 02:58 AM
Selecting font size based on available font dave richards HTML 2 02-19-2004 02:47 PM



Advertisments