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

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-commits@xxxxxxxxxxxxx" <haiku-commits@xxxxxxxxxxxxx>
  • Date: Fri, 8 Feb 2013 15:36:02 -0500

On Fri, Feb 8, 2013 at 3:03 PM, superstippi@xxxxxx <superstippi@xxxxxx> wrote:
> You are simply wrong about it being a print unit. It is simply a unit where
> 72 points fit into an inch. Nothing more, nothing less. It can be translated
> into screen pixels or dots of a printer.

In theory you're right, in practice it doesn't work very well on the
web because you'll eventually be mixing pixel and point units. Perhaps
with the Haiku Book it could work because it is a fairly rigidly
formatted document but as a general rule you'll run into issues. We'd
have to use points everywhere and some places only pixels make sense.

The case that this commit is about is such a case. When we display the
info/warning/stop/idea icons they are 32x32 pixels in size because
that is the size of the source image. The font size of the explanatory
text is relative to the pixel size of the image so that it aligns
nicely. At 12px with a 1.3px line spacing exactly 2 lines fit within
the 32px height of the icon. I did this on purpose so that it would
look nice to your eye even if you didn't notice it consciously. If I
were to use points I could no longer make this assumption unless I
were to also specify the image dimensions in points and then it would
get scaled degrading the image quality.

That being said, if you feel strongly about this and you want to
redesign the Haiku Book in points be my guest, but the relative value
you'd get is not as clear cut as you imply it to be.

Other related posts: