How can I change the size of a single element?

0 votes
asked Oct 14, 2019 in Question / help by Canellas (140 points)

Hi!

In this class diagram:

@startuml
A *-- B
@enduml

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

Thanks!

1 Answer

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

This sets the font size of both A and B

@startuml
skinparam ClassFontSize 20
A *-- B
@enduml

https://www.plantuml.com/plantuml/svg/SoWkIImgAStDuIhEpimhI2nAp5LmpaaiBdRBpoi9pgnALJ0ou79KqDBLLN3YSaZDIm4g1G00https://www.plantuml.com/plantuml/svg/SoWkIImgAStDuIhEpimhI2nAp5LmpaaiBdRBpoi9pgnALJ0ou79KqDBLLN3YSaZDIm4g1G00

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

commented Feb 28 by Bryan (260 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?
...