How can I "unbold" part of class name

0 votes
asked Dec 8, 2016 by eicke (230 points)
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" { ... }

1 Answer

0 votes
answered Dec 8, 2016 by Serge Wenger Work (4,850 points)

Hello,

@startuml

enum "<color:#888888>«Enumeration»</color>\n<b>BookCategory</b>" as BookCategory
@enduml
 
Is this what you want?
commented Dec 8, 2016 by eicke (230 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?
commented Dec 8, 2016 by plantuml (131,770 points)
Not yet.
But we are going to implement a <plain> tag that will do the job.
We'll post a message here when ready
commented Dec 8, 2016 by eicke (230 points)
You're awesome ;-)
commented Dec 8, 2016 by plantuml (131,770 points)
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!
commented Dec 9, 2016 by eicke (230 points)
Perfectly. Awesome response time ;-)
...