How to make Class name bold in plant UML
Asked Answered
H

2

6

It is possible to style the class name in PlantUML to italic by making the class abstract. Is there a way to style the class name so that it is bold as in the example class below?

Bold class name

Handbill answered 19/3, 2022 at 20:23 Comment(0)
E
6

you can put the name of the class between "** and **".

Example:

@startuml

class **House** {

}

@enduml
Excursionist answered 5/5, 2022 at 19:39 Comment(1)
Excellent. But is there a way to get this systematically, i.e. using skinparam ?Wingo
H
3

There is work now to support styles (check the PlantUML Q&A forum for more info).

@startuml
<style>
classDiagram {
  class {
      ' attributes and methods
      FontColor blue
      BackgroundColor yellow
      ' class name
      header {
        FontSize 20
        FontColor violet
        FontStyle bold
      }
  }
}
</style>

hide circle

class User {
  name : String
  id : integer
  toString() : String
}

@enduml

enter image description here

Hibbard answered 23/8, 2022 at 18:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.