1.36 FAQ-152 How to keep the font size from changing when the graph is resized?

Last Update: 1/8/2019

If you resize layers,
for example merge multiple graphs,
and want to fix the text label font size

follow the Fix font size when layer size changes section

If you resize page,
for example change to exact page size
specified by publishers,
and want to fix text font size

follow both the Fix font size when layer size changes section

AND Fix font size when page size changes section

Fix font size when layer size changes

By default, when resizing layers or merging multiple graphs, all text labels including axis titles, tick labels, legend and other label objects will resize with it. Select the text label, the correct font size shows on Format toolbar, but on left corner of Status bar, you will see size(actual) gives different values. This is because the default Scale Elements setting on Size tab at the Layer level in Plot Details dialog is Scale with Layer Frame and all these text labels are attached to layer. You can change it to Fixed Factor and set the factor to 1 so that what you set is what you see.

To fix it for all layers in the current graph window

Select Graph: Fix Scale Factors. Enter the scaling factor in the dialog that opens.

Fix scale factor menu.png
To fix it for existing graphs
  1. Select Preferences: Theme Organizer menu to open Theme Organizer dialog.
  2. On Graph tab, select the Layer No Element Scaling theme and set target graph(s) from Apply Theme to drop-down list.
  3. Click Apply Now button to apply the theme to the graph(s).
To fix it for all new graphs created in the future
  1. In Theme Organizer dialog, go to Graph tab.
  2. Right click the Layer No Element Scaling theme and choose Set as System Theme.

Then when creating new graphs, such system theme will be applied to newly created graphs automatically. Note: by default, system theme only applies to 2D graphs.

Only set some text labels with fixed Font

Maybe you want tick labels, etc. still resize with layer but only set some text label e.g. axis title, or some text labels to be fixed Font size.

  1. Right click on each text object (except axis label and axis title) and select Properties… from the context menu
  2. Attach the text object to Page on Programming tab of Text Object dialog. Then this object will not resize with layer.

Fix font size when page size changes

From Origin 2018b the page resizing behavior has been changed so that when you change the page size (on Print/Dimensions tab of page level in Plot Details dialog) beyond certain threshold percentage, the text label fonts are resized . The system variable @PSM is used to control this threshold. Its default value is 20, which means small change on page size (less than 20% size change) won't trigger any font rescaling. However, if you greatly change the page size, text will be resized to maintain the appearance of the graph.

If you want to change the page size, after follow any of the three ways in the above section, you will also need to do the following to turn off the auto-rescaling feature:

  1. Select Preferences: System Variables
  2. Set system variable @PSM to 100 .
Resize page sys variable dlg.jpg

Keywords:font size, resize, fixed factor, theme organizer, page size