0

I'm trying to figure out how to change the font in part of a large text field in delphi. (At the moment, I'm working with a RichEdit field.) I know it's possible to set the font style for the component, but that changes all the text, which isn't what I'm after. I'd like something that allows text with two different font styles to coexist side by side, like this and this, in the same RichEdit component. Is that even possible?

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Lord Soth
0

Hi,

1. It is possible. 2. Manually set the selection property to the text part for which you want to adjust font and use font property of selection of richedit. 3. Check the RichEdit Demo on Demos folder for further samples.

Loren Soth

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.