[haiku-commits] Re: haiku: hrev45221 - in docs/user/app: . docs/user

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 08 Feb 2013 20:19:01 +0100

> The long answer is: pt's are fixed size like px's but and are meant
> for print (as they are a fraction of an inch) whereas px are used for
> screen. 

That's where you are wrong. px are not fixed size, they depend on the screen 
resolution. While this was ok in a world where all the available display 
hardware was in the range of 90 to 125dpi, this is not the case anymore. 
Some smartphones, and now some computers, have a pitch as high as 300dpi. 
This makes a 12px font ridiculously small. On the other hand, using pt keeps 
the font size the same for all these displays (the physical size, in inches 
or centimeters).

em is a relative unit. This solves a different problem.

-- 
Adrien.

Other related posts: