SequenceGroupFontStyle without effect

0 votes
asked Dec 8, 2021 in Bug by jalbers (140 points)

Hi,

SequenceGroupFontStyle sems to be without effect at the first group text.

Example:
@startuml
skinparam SequenceGroupFontColor red
skinparam SequenceGroupFontStyle normal
A -> B
alt GroupText - still bold = a Bug?
C <- B
B <- C
else \t\t\tGroupText - normal = okay
A <- B
end
@enduml

And is it possible to indent the group texts? For example by setting the leading spaces and tabs before the opening bracket.

Many greetings
Jens


 

1 Answer

0 votes
answered Dec 8, 2021 by Martin (8,360 points)
edited Dec 8, 2021 by Martin

Remember that Plantuml is moving away from skinparams and over to <STYLE>.  It looks like the bold bug doesn't affect the Style version...  Could you use that instead?

<STYLE>
sequenceDiagram  {
  group {
    FontColor red
    FontStyle normal
  }
}
</STYLE>

Here's a work-around idea for indenting the text - set the group text font colour to white (to hide the hardcoded square brackets); and then change it manually in your text (using <color:red>), optionally adding in your own square brackets.

And if for some reason you must use skinparams, then here's a workaround - by changing the SequenceGroupHeaderFontStyle skinparam to normal you get the normal text you want, but lose the bold 'alt'.  But you can define a custom group header of <B>alt</B> and it looks almost identical:

commented Dec 15, 2021 by jalbers (140 points)

Hi,

thank you very much for the hints. I'm using <STYLE> now, but the separator Shadowing has no effect in version 1.2021.16.

//www.plantuml.com/plantuml/png/ROp13S8m34Nldi8B81YWgTg83JA1HQqIaQGGsq88TNS8gZZL9zl__JU8KbNB2UGMovqgPJHXpqf1NubHgp5qqlOUX1_6vSBdI7CZyGtudN2bQNd6CkFfTmitaIvro_UO5LReZfjtn4EF7fp3yAyw1xwzHnYuJ9RJ1m00

Many greetings
Jens

...