Skip to content

Commit

Permalink
[MNT-23960] Added DEFAULT_FONT constant (NotoSans-Regular)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosalvado10 committed Feb 6, 2024
1 parent 7d63b59 commit a1bbafb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -516,7 +517,7 @@ public String getDefaultFont()
{
if (defaultFont == null || defaultFont.isBlank())
{
return PDType1Font.HELVETICA.getName();
return TextToPdfContentTransformer.DEFAULT_FONT;
}

return defaultFont;
Expand All @@ -526,7 +527,7 @@ public void setDefaultFont(String name)
{
if (name == null || name.isBlank())
{
defaultFont = PDType1Font.HELVETICA.getName();
defaultFont = TextToPdfContentTransformer.DEFAULT_FONT;
}
else
{
Expand Down

0 comments on commit a1bbafb

Please sign in to comment.