Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Change the font part of label
Change the font part of label [message #1735203] Thu, 16 June 2016 10:15 Go to next message
Martin Jedlicka is currently offline Martin JedlickaFriend
Messages: 122
Registered: January 2016
Senior Member
Hello,

I had a question regarding changes to the font of the label. I need to label the node has two information from a model (code and name), while I needed to code it in bold, see picture.

Possible? Perhaps using HTML tags in the text?
 
Thanks so much for any advice.

Martin
Re: Change the font part of label [message #1735222 is a reply to message #1735203] Thu, 16 June 2016 12:52 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

Indeed, I do not think that you can display a label using multiple
fonts. I think that you will have to provide your one EditPart[1] that
have two LabelEditPart, one for each field (code and name).

Regards,
Steve

[1]https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom_style.html

Le 16/06/2016 à 12:15, Martin Jedlicka a écrit :
> Hello,
>
> I had a question regarding changes to the font of the label. I need to label the node has two information from a model (code and name), while I needed to code it in bold, see picture.
>
> Possible? Perhaps using HTML tags in the text?
> Â
> Thanks so much for any advice.
>
> Martin
>


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Change the font part of label [message #1735224 is a reply to message #1735203] Thu, 16 June 2016 12:52 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

Indeed, I do not think that you can display a label using multiple
fonts. I think that you will have to provide your one EditPart[1] that
have two LabelEditPart, one for each field (code and name).

Regards,
Steve

[1]https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom_style.html

Le 16/06/2016 à 12:15, Martin Jedlicka a écrit :
> Hello,
>
> I had a question regarding changes to the font of the label. I need to label the node has two information from a model (code and name), while I needed to code it in bold, see picture.
>
> Possible? Perhaps using HTML tags in the text?
> Â
> Thanks so much for any advice.
>
> Martin
>


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:SVG export with semantic data
Next Topic:Edge touching real border of custom non-rectangular polygon
Goto Forum:
  


Current Time: Wed Sep 18 22:37:56 GMT 2024

Powered by FUDForum. Page generated in 0.03489 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top