set classfont individually

0 votes
asked Sep 12 in Question / help by MarcV (370 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 by Serge Wenger Work (9,810 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
...