On 4 April 2014 08:35, Pharo4Stef <pharo4Stef@free.fr> wrote:
I don't think there is any way for the VM to know the #pixelsPerInch of
the
display, regardless of the display resolution.
There is no api in the OS for that? It would be really strange that we cannot know such information.
There is, of course. Usually, display drivers can provide such information. But still you not always can know the physical dimensions of your display: - consider trying to measure DPI of display which actually a wall projector :) Anyways, i doesn't really matters what is DPI of the screen.. since with with vector graphics you are free at any moment to zoom in/out things to most pleasant scale. And therefore, font size in points becomes more like a relative measurement, rather than absolute (you know that font with of 20 points size will be 2 times bigger than same font with 10 points size)
Maybe that implies that some calibration would be needed in the image to relate font points to the physical display.
Dave
-- Best regards, Igor Stasenko.