How can I "unbold" part of class name

0 votes
asked Dec 8, 2016 in Closed question / help by eicke (240 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 (8,870 points)



enum "<color:#888888>«Enumeration»</color>\n<b>BookCategory</b>" as BookCategory
Is this what you want?
commented Dec 8, 2016 by eicke (240 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 (164,520 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 (240 points)
You're awesome ;-)
commented Dec 8, 2016 by plantuml (164,520 points)
The last beta
skinparam classFontStyle bold
enum BookCategory as "<color:#888888><plain>Enumeration</plain></color>\nBookCategory"
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 (240 points)
Perfectly. Awesome response time ;-)