Does anyone know how to change the default font of a RichText control in Devexpress? I have a html variable bound to it from my datasource, but instead of going for the default font set for the whole document it's presenting the data in TImes New Roman.
Html variable bound to itAdvies is in Times New Roman
I've found multiple custom scripts that change the font at runtime in some very old DevExpress support threads on their community, but those scripts make use of a library called RichEditDocumentServer. That library is nowhere to be found in the version of DevExpress that's available to us.
Maybe there's a way to change the font of an HTML field before we feed it to DevExpress? I've seen this solution:
The only thing that's bothering me is the extra padding in red that gets added for the <p> paragraph that's bold. Tried to overwrite it in the above code and via the following solution but it didn't work:
The only thing that's bothering me is the extra padding in red that gets added for the <p> paragraph that's bold. Tried to overwrite it in the above code and via the following solution but it didn't work:
If you cannot fix this with dev-express you can always try to modify the database value of the HTML field, maybe add some styling in the field itself so that there is no spacing in front of the content.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.