[vtk-developers] HiDPI / Retina displays and vtkTextActors

Sean McBride sean at rogue-research.com
Wed Oct 11 15:44:02 EDT 2017


Hi all,

We've been testing our app against VTK git master and have run into one HiDPI/Retina issue.

In the attached screenshot (hopefully not too big for the list) we see two identical render windows except that the left one has Retina enabled, and the right one has it disabled.  (Indeed we see less aliasing with the left cone.)

But notice the vtkTextActors.  The string appears half size in the left view.  I argue this is a bug.  To be clear, in both cases, we specified SetFontSize(30).

It does not seem desirable to have to provide a different value to SetFontSize() depending on the display type (HiDPI or not).  With no other actor type, like the cones, does the display type matter.

Presumably some code somewhere takes that font size and computes how many pixels tall/wide to make the text onscreen.  Perhaps it should doing something extra now?  I'm not sure how we should deal with this, so am here to discuss...

Thanks,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VTKRetina.png
Type: image/png
Size: 110682 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20171011/c2af2758/attachment-0001.png>


More information about the vtk-developers mailing list