Text scaling inside classes

0 votes
asked Jun 29, 2018 in Bug by agillesp (640 points)

I don't know whether this is a bug or just me abusing class diagrams.

The following snippet used to result in a class containing two columns that were vertically aligned:

ClassAttributeFontName "Courier New"
MyClass {
  VeryVeryLongNameIndeed 1
  Short                  2

The result now is some strange horizontal scaling on the second line:

I am currently using version 1.2018.08, although several versions before this would also do the same thing.

Is this a bug?

1 Answer

0 votes
answered Jul 10, 2018 by plantuml (204,600 points)

Maybe you can use the following example:

hide empty members
skinparam ClassAttributeFontName "Courier"
class MyClass {

Is this what you are expecting ?


commented Jul 11, 2018 by agillesp (640 points)
Thanks for your response.

It does help in a lot of cases, although changing from a TrueType font (Courier New) to a bitmap font (Courier) also works without using escaped tabs.

I notice that there is a similar issue with notes, except there the "\t" solution doesn't work as it just inserts the literal characters "\t" into the note.

I have a suspicion there is an underlying bug in there somewhere, but the behaviour is not easy to understand.
commented Jul 12, 2018 by agillesp (640 points)
It is possible this issue may be related to this one:


It seems to occur only with TrueType fonts on Windows.