Edit: the options given for fields with an HTML control were:
- [dbo].[sanitize_html] (function is available in the SF database only)
- replace () in default or trigger logic (cumbersome in the case of RTF)
Crystal Reports is fed various RTF fields and curruntly for each line of text, four lines of hardcoded RTF formatting are applied in the SF.
The code that fills those RTF fields in the application is revised so that more of it is applicable for a shared set of fields.
I hope to get rid of all the RTF formatting in control procedures, as all text is formatted to a single font anyway. It just happens not to be Times New Roman, which is what the RTF control applies by default.
How to change the default font of RTF controls in the 2019.1 suite?
Best answer by Erik Brink
I would say, the GUI shows the RTF inside the form based on the configured form editor font. When saving a typed value in the control to the database, no styling is saved except when the user styled a specific part of the text itself.
This way the RTF text could be styled from the out-side, displaying it in a report for example. So the font you specified for the report itself will be applied to the non formatted text.
I don't think we provide any helpful functions yet to strip formatting from RTF text yet.