How to change font size of package name?

0 votes
asked Oct 31, 2022 in Question / help by Bangalore Wraith (140 points)

Hello, I have tried to change the font size of package name in UML class diagram. But, It doesn't seem to work. Did I miss something? Demo

@startuml
skinparam classFontSize 20
skinparam packageFontSize 20
package company {
    class Employee {
        id: Long
        name: String
    }
}
@enduml

1 Answer

+1 vote
answered Oct 31, 2022 by The-Lu (64,960 points)
selected Oct 31, 2022 by Bangalore Wraith
 
Best answer

Hello B.W., and all,

You can use style, as:

@startuml
<style>
class {
  FontSize 20
}
element {
  title {
    FontSize 20
  }
}
</style>

package company {
    class Employee {
        id: Long
        name: String
    }
}
@enduml

See ref. here:

Regards.

...