diff --git a/engines/misc/src/main/java/org/alfresco/transform/misc/transformers/TextToPdfContentTransformer.java b/engines/misc/src/main/java/org/alfresco/transform/misc/transformers/TextToPdfContentTransformer.java index 5c99d9e44..678f5c424 100644 --- a/engines/misc/src/main/java/org/alfresco/transform/misc/transformers/TextToPdfContentTransformer.java +++ b/engines/misc/src/main/java/org/alfresco/transform/misc/transformers/TextToPdfContentTransformer.java @@ -90,6 +90,7 @@ public class TextToPdfContentTransformer implements CustomTransformerFileAdaptor private static final byte EF = (byte) 0xEF; private static final byte BB = (byte) 0xBB; private static final byte BF = (byte) 0xBF; + private static final String DEFAULT_FONT = "NotoSans-Regular"; private static final int DEFAULT_FONT_SIZE = 10; private final PagedTextToPDF transformer; @@ -516,7 +517,7 @@ public String getDefaultFont() { if (defaultFont == null || defaultFont.isBlank()) { - return PDType1Font.HELVETICA.getName(); + return TextToPdfContentTransformer.DEFAULT_FONT; } return defaultFont; @@ -526,7 +527,7 @@ public void setDefaultFont(String name) { if (name == null || name.isBlank()) { - defaultFont = PDType1Font.HELVETICA.getName(); + defaultFont = TextToPdfContentTransformer.DEFAULT_FONT; } else {