Support Article
Additional Font style for Paragraph Rule
SA-43241
Summary
The requirement is to add the Calibri font style in the paragraph rule with Pega 7.2.
Error Messages
Not Applicable
Steps to Reproduce
1.Open a Paragraph rule.
2.Type some text.
3.Try to change font style as calibri.
4. Observe that no calibri font style is available.
Root Cause
Not Applicable
Resolution
To add the new fonts to the Rich Text Editor (RTE), add the following script in the UserWorkform:
<script>
window.customCKEditorFonts = "Helvetica, sans-serif;Calibri;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif;MS Mincho" + ";Segoe UI";
</script>
In the above script,the display values in the list and the output fonts are separated by slash and fonts are seperated by ";".
Note that window.customCKEditorFonts variable is used to override the Config.font_names of CKEditor.
So,all the fonts mentioned in the above script will be displayed in the RTE.
Published November 8, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.