Info: Performing the described steps requires direct server access. Depending upon how your system is hosted and the level of access you have to that system, coordination may be required with your Partner or WoodWing Support team. For a full overview of the steps that need to be done by WoodWing and how to request them, see WoodWing Cloud - Change management.
When viewing an article in the Studio Print editor, (most of) the text of the article is shown in the formatting that has been applied to it.
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
- Maximum size = 32pt
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.
Note: 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 Studio Server. Note that these settings are global and affect all users that make use of Studio on that instance of Studio 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 (recommended: config_overrule.php file)
- Location: <Studio Server path>/config/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 (recommended: config_overrule.php file)
- Location: <Studio Server path>/config/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
- File: config.php (recommended: config_overrule.php file)
- Location: <Studio Server path>/config/plugins/ContentStation
- Name of option: EDITOR_FONT_SCALE
- Possible values: any numeric value
- Example:
Example:
|
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.
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. |
Comment
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
0 comments
Please sign in to leave a comment.