Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Param to center text in activity

0 votes


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 :) )

asked Jun 22, 2016 in Wanted features by legz (490 points)

1 Answer

+1 vote
Best answer

Good idea!

With last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

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.

answered Jun 22, 2016 by plantuml (125,190 points)
selected Jun 22, 2016 by legz
It seems to work like a charm on my diagrams, thanks!
Note that this has been released in V8045
It is working fine on V8045 in local, but not on the PlantUML server: http://www.plantuml.com/plantuml/uml/Aov9B2hXilB9pqjNA4cjA8d9oooEoG7ohBcAI_8B0000 (server is also in V8045)
Do not forget to put
skinparam defaultTextAlignment center

You can try:


Is this ok for you ?
Oups, you're right, sorry for that.
Everything works fine, thanks!
Support This Project Offer 250 Mo! Follow PlantUML on Twitter