Colorbar font size bug?


#1

Hi.

When saving a screenshot with resolution than that of the default one the size of fonts in the colormap are scaled awkwardly, i.e. they appear in the saved image much larger than in the rendering window.

The same does not occur with fonts in annotations.

Could it be a bug?

Update: the same behavior applies to the colorbar thickness


(Walter Alan Scott) #2

Replicated. This is a bug. I wrote it up here: https://gitlab.kitware.com/paraview/paraview/issues/18651. Scheduled for next fall, but it will depend on the queue of bugs that exist the middle half of next year.


(Cory Quammen (Kitware)) #3

Here is what is happening. When you save a screenshot larger than the current render view resolution, ParaView needs to scale up text so that it looks proportional to the other elements in the image if you have the Font Scaling property in the Save Screenshot Options dialog set to “Scale fonts proportionally”. Now, this scaling is restricted to integral scale factors, so if you increase the resolution in each dimension by 2, 3, 4 times, or some other integral, the font scaling looks as expected. But if you increase the resolution by 1.1 times, for instance, the fonts will appear too large.

A workaround is to set the render view size in ParaView to some integral factor smaller than the desired output image resolution using the menu item View -> Preview -> Custom … Then save the image at the desired resolution. The fonts will be proportional to the rest of the image.

Why aren’t we able to scale fonts by an arbitrary scale factor? I believe there are historical reasons I am not familiar with, but this integral scale factor is scattered throughout VTK. It may be a fair amount of work to change it to an arbitrary scale factor, but it is worth looking into.


#4

Got it.

Thanks for the in deep explanation, Cory.

R


(Walter Alan Scott) #5

@cory.quammen @utkarsh.ayachit would it be worth the time to look into VTK, to try to understand why we can’t scale at non integer values?


(Cory Quammen (Kitware)) #6

I think it would be nice to be able to scale fonts in a truly proportional manner.