Author Topic: Strings in shape script  (Read 3911 times)

Sorno

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Strings in shape script
« on: February 12, 2014, 01:42:03 am »
Hi,

In my profile I have replaced the shape of a stereotype from the native with this shape script:
shape main{      
noshadow = "true";
h_align = "center";
setfillcolor(153,249,153);
roundrect(0,0,100,100,25,25);
println("«#stereotype#»");
println("name");      
}

My problem is that the name of an element is normally in bold, and I wonder if it is possible to make the text in shapescript consistent with this (i.e. the text in the script above has normal weight)?

I know that the help file says "You cannot change the font size, type or color of this text".. but it has been wrong before.

Using EA 10.1009.

Thanks for any input!
« Last Edit: February 12, 2014, 01:42:27 am by Sorno »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Strings in shape script
« Reply #1 on: February 12, 2014, 02:13:10 am »
And the answer is: you can not change fonts individually for text strings but only globally for the whole element.

q.

Sorno

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Strings in shape script
« Reply #2 on: February 12, 2014, 02:49:10 am »
Allright, thanks.