How do I set the size of the text of the title of a larger set of states in a state diagram.

0 votes
asked Jun 27 in Question / help by tait_hoyem (120 points)

I have a state diagram that contains the following block:

state "Operation" as o {    
  state "Running" as r    
  state "Testing" as te    
  state "Transmitting" as tr    
  state "Summarizing" as su    
  state "Collection" as col    
}

The string "operation" is a bit bigger than I want. I don't want to scale everything else up, if possible, just make that title text for "Operation" a bit smaller. Is this possible? If it is, I couldn't find the skinparam.

Using skinparam StateFontSize XX only changes the font size for the states which are not "Operation".

Any ideas? Thanks again,

1 Answer

0 votes
answered Jun 27 by The-Lu (48,920 points)

Hello T.,

Here is a workaround, with style, as:

@startuml
<style>
.myHeader {
  FontSize 10
}
</style>

state "Operation" as o <<myHeader>> {    
  state "Running" as r    
  state "Testing" as te    
  state "Transmitting" as tr    
  state "Summarizing" as su    
  state "Collection" as col    
}
@enduml

If that can help,
Regards.

...