set classfont individually

0 votes
asked Sep 12, 2018 in Question / help by MarcV (340 points)
Hello,

Is is possble to set classfont individually?

With 'skinparam classFontSize 7' , I can change the fontsize for the complete diagram.

Thanks

1 Answer

0 votes
answered Sep 12, 2018 by Serge Wenger Work (15,620 points)

Hello,

You can do like this:

@startuml
skinparam class {
   FontSize<<small>> 7
   FontSize<<big>> 25
   backgroundColor<<small>> Red
}
hide <<small>> stereotype

class aaa<<small>>{
   aaa()
}
class BBB<<big>> {
   BBB()
}

@enduml
...