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

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 09 Feb 2013 08:14:31 +0100

Am 08.02.2013 21:36, schrieb John Scipione:
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.

I do understand the problem you are pointing out.

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.

I agree that when having to align script with images, it gets tricky to do it right. Either way has problems.

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.

I didn't mean to imply anything. Your first reaction was simply not compatible with what I knew about the point unit. Like I said, I understand the problem. However, I still believe that for text that doesn't have to match the size of some other element which depends on pixels, and is supposed to be comfortably readable, using points as unit is still more correct and future proof. It is obvious to me that when the browser does not take any measures and uses the pixel unit literary, then text will not be readable with high resolution displays at 12px.

Best regards,
-Stephan


Other related posts: