Is it possible to use the normal font for interface names rather than italics in class diagrams?

0 votes
asked Nov 14 in Question / help by Omar Assadi
Hi, I was wondering if it is possible to unitalicize the names of interfaces. I see there is a skinparam parameter "InterfaceFontStyle", but the documentation says it works everywhere except class diagrams.
commented Nov 14 by The-Lu (36,200 points)

Hello O.,

It is not yet possible, this will be a feature request.

FYI, that is hard-coded on:

If that can help,
Regards.

1 Answer

0 votes
answered Nov 14 by Martin (5,640 points)

Here's a bit of a hack, incorporating a style tag into the Interface's description.  Interface1 is the standard for comparison.  Interface2 method means you have to repeat the formatting whenever you reference it!  Interface3 method gives the interface an alias that you use instead.

@startuml
interface interface1 <<interface>>
interface "<plain>interface2</plain>" <<interface>>
interface "<plain>interface3</plain>" as interface3 <<interface>>

interface1 --> "<plain>interface2</plain>"
"<plain>interface2</plain>" --> interface3
@enduml

@Th - I don't think <plain> (added here)  is documented anywhere?  I found it by accident.  Maybe it should be in the Legacy HTML section of Creole?  Although I'm not sure it is standard HTML...but I can't think where else to put it that I might have found it.

commented Nov 14 by The-Lu (36,200 points)

Hello all,

Yes, it is not yet documented, see:

I can make the update...

Regards.

...