WoodWing Help Center

Restricting the size of fonts displayed in the text editor of Content Station 10

Controlling the size of fonts displayed in the Content Station 10 Print editor

When viewing an article in the Content Station 10 Print editor, (most of) the text of the article is shown in the formatting that has been applied to it.

Styled text in the text editor

Seeing the different article components styled differently (such as the title, head, sub-head, and body displayed in different font sizes) is of much benefit to the writer.

However, it may also create some practical issues:

  • Text in a very large font size may increase the height of an article component in such a way that the article components that follow it are pushed out of view
  • Text in a very small font size may become difficult or impossible to read

Default font sizes

To prevent the above described issues, the display of the text size is controlled in the following ways:

Note: This only affects the way the text is displayed in the Print editor; the actual size of the text in the article is not affected.

  • The maximum and minimum font size is restricted to the following values:
  • Minimum size = 10pt 1
  • Maximum size = 32pt

1 Requires Content Station 10.6 or higher. In earlier versions the default font size is set to 8pt.

This means that:

  • Any font that is smaller than 10pt will be displayed in a size of 10pt
  • Any font that is larger than 32pt will be displayed in a size of 32pt
  • A scaling factor is applied to further increase or decrease the display size of all fonts.The default factor is 1.125, meaning that the size of all text is increased by a factor of 1.125.

Notes:

  • This feature requires Content Station 10.22 or higher.
  • The scaling is applied after the minimum and maximum font size restrictions are set.

Configuration

All options that are described above can be configured in Enterprise Server. Note that these settings are global and affect all users that make use of Content Station 10 on that instance of Enterprise Server.

Controlling the maximum and minimum font size

This can be further controlled by the following options:

Setting the minimum font size

  • File: config.php
  • Location: <Enterprise Server path>/Enterprise/contentstation/plugins/ContentStation
  • Name of option: EDITOR_MIN_FONT_SIZE
  • Possible values: any numeric value; it will be expressed in points
  • Example:

Example: Here, the font size is set to be displayed no smaller than 24pt:

define( 'EDITOR_MIN_FONT_SIZE', 24);

Setting the maximum font size

  • File: config.php
  • Location: <Enterprise Server path>/Enterprise/contentstation/plugins/ContentStation
  • Name of option: EDITOR_MAX_FONT_SIZE
  • Possible values: any numeric value; it will be expressed in points
  • Example:

Example: Here, the font size is set to be displayed no larger than 72pt:

define( 'EDITOR_MAX_FONT_SIZE', 72);

Tip: To remove any restrictions in the way the font size is displayed, set the minimum font size to 0 (zero) and the maximum font size to 1000.

Note: These settings only affect the way the font size is displayed when viewing the article in the Print editor; the size of the font in the actual article is not affected.

Controlling the scaling factor

Info: This feature requires Content Station 10.22 or higher.

  • File: config.php
  • Location: <Enterprise Server path>/Enterprise/contentstation/plugins/ContentStation
  • Name of option: EDITOR_FONT_SCALE
  • Possible values: any numeric value
  • Example:

Example:

if( !defined( 'EDITOR_FONT_SCALE' ) ) {
    define('EDITOR_FONT_SCALE', 1.125);
}

Troubleshooting

After setting a minimum and maximum font size, the size of the displayed fonts is not as expected

This happens when the value of the maximum font size is set as equal to or lower than the value of the minimum font size. When this happens, the value of the maximum font size overrules the value of the minimum font size.

Example: Here, the maximum font size is set lower than the minimum font size.

define( 'EDITOR_MIN_FONT_SIZE', 24);

define( 'EDITOR_MAX_FONT_SIZE', 12);

Any text that is smaller than 12pt is now displayed in a size of 24pt; any text that is larger than 12pt is displayed in a size of 12pt.

Document history

  • 18 May 2017: Added information about the scaling factor.
  • 18 May 2017: Changed the title from 'Restricting the size of fonts displayed in the Content Station 10 Print editor' to 'Controlling the size of fonts displayed in the Content Station 10 Print editor'
  • 18 January 2017: Changed references of 'text editor' to 'Print editor'.
  • 20 September 2016: Updated default minimum font size.
Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.