Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] How to set different Fonts in StyledText widget?



No the StyledText widget does not support different fonts - only different
colors and font styles (i.e., bold or normal).

Questions like this should be posted to the SWT newsgroup, not the
developer mailing list.  This list is for discussing development issues.




                                                                                                                                       
                      Johnny Lo                                                                                                        
                      <jclo5@xxxxxxxxx>              To:       platform-swt-dev@xxxxxxxxxxx                                            
                      Sent by:                       cc:                                                                               
                      platform-swt-dev-admin@        Subject:  [platform-swt-dev] How to set different Fonts in StyledText widget?     
                      eclipse.org                                                                                                      
                                                                                                                                       
                                                                                                                                       
                      07/24/2003 04:43 PM                                                                                              
                      Please respond to                                                                                                
                      platform-swt-dev                                                                                                 
                                                                                                                                       
                                                                                                                                       




Hi,

I have been digging for a long time long and without success. I am trying
to apply different fonts and size to the texts in the same StyleText
widget. But when I call setFont() second time, it will apply the change to
the whole text. Is there anyway to apply different fonts on different part
of the text in the same StyledText widget?

Thanks.

Johnny Lo


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software








Back to the top