Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

How can I "unbold" part of class name

0 votes
For a class name in a class diagram I want to "unbold" part of the text, but only the opposite is possible.  The genenal font is set to bold (via "skinparam classFontStyle bold").  How can I revert that for part of my text?

Here is an example, where I actually want to be "Enumeration" in normal font weight, rather than bold:

enum BookCategory as "<color:#888888>«Enumeration»</color>\nBookCategory" { ... }
asked Dec 8, 2016 by eicke (230 points)

1 Answer

0 votes

Hello,

@startuml

enum "<color:#888888>«Enumeration»</color>\n<b>BookCategory</b>" as BookCategory
@enduml
 
Is this what you want?
answered Dec 8, 2016 by Serge Wenger Work (1,860 points)
Hello Serge,
thanks for your quick response, but it's not working as all class names are bold anyway (due to skinparam). What I could do though is, to set classFontStyle to normal, but than I need to surround each and every classname with <b>-tags (as you suggested).
Is there any other way?
Not yet.
But we are going to implement a <plain> tag that will do the job.
We'll post a message here when ready
You're awesome ;-)
The last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
supports:
@startuml
skinparam classFontStyle bold
enum BookCategory as "<color:#888888><plain>Enumeration</plain></color>\nBookCategory"
@enduml
However, very few tests have been done, so please post here if you find issues with this new syntax.
Thanks for your suggestion!
Perfectly. Awesome response time ;-)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...