ralfstuckert / pdfbox-layout

MIT License
155 stars 74 forks source link

Height of embedded <br> #67

Closed dvcroft closed 5 years ago

dvcroft commented 5 years ago

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);
dvcroft commented 5 years ago

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.