Thank you Liorean.
 
Brian Cummiskey, please read:
 
On 01/02/06, Brian Cummiskey <[EMAIL PROTECTED]>wrote:

> pt is for PRINT media, not screen.

Wrong. Points are for all devices that operate at different ppi* than
96. Points have a locked points per logical inch resolution of 72.
Pixels vary depending on ppi. So, if a medium has 96 ppi then a 12pt
text will be rendered as 12*96/72=16px. If a medium has 120 ppi, then
the same 12pt text will be rendered as 12*120/72=20px. If a device has
300 ppi, the 12pt text will be rendered as 12*300/72=50px. And the
reverse is also true. That means that 16px text on a 96 ppi medium
will be rendered the same size as 16*72/96=12pt. If a medium has 120
ppi, 16px text will be rendered as 16*72/120=9.6pt, and if a medium
has 300 ppi the 16px text will be rendered as 16*72/300=3.84pt.
...except for the fact that the CSS reference pixel is defined at
about 1/96 inch and not the actual medium pixels, so a smart renderer
that knows about it's medium's ppi might scale it and thus make sure
that 16px=12pt is always true. That knowledge or it's implementation
for that matter is not guaranteed, however.

* Pixels per "logical" inch, which is about equivalent to dots per
physical inch as is used in print media. Default in Windows is 96
(Windows even calls it DPI), or 120 for large size.
--
David "liorean" Andersson

******************************************************
The discussion list for http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************




What are the most popular cars? Find out at Yahoo! Autos

Reply via email to