diff --git a/src/net/sourceforge/plantuml/ugraphic/UFont.java b/src/net/sourceforge/plantuml/ugraphic/UFont.java index 6a4d86797..94da511e9 100644 --- a/src/net/sourceforge/plantuml/ugraphic/UFont.java +++ b/src/net/sourceforge/plantuml/ugraphic/UFont.java @@ -57,7 +57,7 @@ public class UFont { public String toStringDebug() { final StringBuilder sb = new StringBuilder(); - sb.append(font.getFontName()); + sb.append(getPortableFontName()); sb.append("/"); sb.append(font.getSize()); return sb.toString(); @@ -168,6 +168,20 @@ public class UFont { return family; } + // Kludge for testing because font names on some machines (only macOS?) do not end with