Fonts don't scale in split view screenshots saved from Macro

FontScaling=‘Scale fonts proportionally’ in SaveScreenshot function does not work in split views, but only when screenshot is saved from a macro script. The color bar labels and title comes out very large. Tested in 5.9.0 and 5.10.1.

To reproduce:

  • Split the view horizontally (both render views)
  • Open any dataset showing a color bar in both views
  • Trace changing to a smaller layout size (Lock View Size Custom in GUI or GetLayout().SetSize() and saving a screenshot
  • Save trace as macro

Macro executed for left view will have properly scaled labels. For right view - not.

Is this a known issue?

Hi @pindakaas, we think we were able to reproduce this. We just want to make sure we are seeing the same thing.

Image from Macro

Image from manual screenshot

Yes, that’s correct.

I submitted an issue in gitlab for this