954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Font changing in Delphi?

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?

EnderX
Posting Shark
999 posts since Aug 2006
Reputation Points: 483
Solved Threads: 1
 

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

Lord Soth
Posting Whiz in Training
233 posts since Mar 2006
Reputation Points: 28
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You