ralfstuckert/pdfbox-layout

Height of embedded <br>

Closed this issue · 1 comments

I have embedded
in text that I am using to create textFlow. When I have a sequence of <br><br>, I am expecting a blank line that is the same height as a normal text line, but it is much smaller. Is there a way to adjust the height of the blank line?

Thanks!

TextFlow text;
text=buildStyledText("Line one<br><br>Line two",s,color,font);
text.setApplyLineSpacingToFirstLine(false);
text.setMaxWidth(wt);
text.drawText(contents, new Position(xt, yt), Alignment.Left, null);

I'm closing this. The buildStyledText above is breaking text into multiple styled text separated by NewLine and I found a NewLine that has a font size so I can fix it.