Font Style in draw2D label [message #55767] |
Fri, 17 January 2003 16:46  |
Eclipse User |
|
|
|
Originally posted by: oro7d3.netscape.net
How can I change teh font style (e.g. underline, bold the text) of a draw2D
label? I look at the javadoc, I can't find methods like setFont().
Thanks.
|
|
|
|
|
Re: Font Style in draw2D label [message #56671 is a reply to message #56566] |
Mon, 20 January 2003 13:27  |
Eclipse User |
|
|
|
If you look at FontData.setStyle(int), you can see it sets the lfItalic and lfWeight fields on a
LOGFONT object (this is a Windows structure). LOGFONT also has an lfUnderline field. I'm not sure
why you can't set the font to be underlined. This question would probably be better suited for the
eclipse.tools newsgroup.
Eric
oro wrote:
> Thanks. Can SWT Font have Underline style? I look it up, it only supports
> Bold, Italic
> Thanks
> "Dan Lee" <noone@ibm.com> wrote in message
> news:b09t21$maq$1@rogue.oti.com...
>
>>The draw2D label does have a setFont method, it is inherited from Figure.
>>It takes an SWT Font for an argument, check out the Font class in
>>org.eclipse.swt.graphics.
>>"oro" <oro7d3@netscape.net> wrote in message
>>news:b09sk8$lvd$1@rogue.oti.com...
>>
>>>How can I change teh font style (e.g. underline, bold the text) of a
>>
>>draw2D
>>
>>>label? I look at the javadoc, I can't find methods like setFont().
>>>
>>>Thanks.
>>>
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.25804 seconds