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?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.