Param to center text in activity

+1 vote
asked Jun 22, 2016 in Wanted features by legz (520 points)


Is it possible to have an option to center text in activities? (with a skinparam for exemple)

The goal is to obtain something like this :

Instead of this :

(without typing some spaces to mimic the centering :) )

1 Answer

+2 votes
answered Jun 22, 2016 by plantuml (149,480 points)
selected Jun 22, 2016 by legz
Best answer

Good idea!

With last beta

You can now have:

skinparam defaultTextAlignment center
very very very very long text;

Thanks for the suggestion!
This has not been highly tested, so feedback is welcome.

commented Jun 22, 2016 by legz (520 points)
It seems to work like a charm on my diagrams, thanks!
commented Jul 4, 2016 by plantuml (149,480 points)
Note that this has been released in V8045
commented Jul 5, 2016 by legz (520 points)
It is working fine on V8045 in local, but not on the PlantUML server: (server is also in V8045)
commented Jul 5, 2016 by plantuml (149,480 points)
Do not forget to put
skinparam defaultTextAlignment center

You can try:

Is this ok for you ?
commented Jul 5, 2016 by legz (520 points)
Oups, you're right, sorry for that.
Everything works fine, thanks!