How can I change the size of a single element?

–1 vote
asked Oct 14, 2019 in Question / help by Canellas (170 points)


In this class diagram:

A *-- B

I would like to set the size of A to, for example, twice its current size. Is it possible?


2 Answers

0 votes
answered Dec 9, 2019 by poi (1,060 points)
edited Dec 9, 2019 by poi

This sets the font size of both A and B

skinparam ClassFontSize 20
A *-- B

AFAIK: It's not possible to set the font size for a specific class without affecting all classes.

commented Feb 28, 2020 by Bryan (280 points)
How about changing the size of the element (not the font)? E.g. if I have two classes with different names (e.g A and AVERYLONGNAME), i want them both to show with the same width?
+1 vote
answered Jun 30, 2021 by kirchsth (2,880 points)
edited Jun 30, 2021 by kirchsth

You could use creole and modify the display text (e.g. use size),...

"<size:30>A" *-- B


BR Helmut