<BUG>stream.setLineWidth(0.5F);stream.drawLine(textX, textY - lineOffset, textX + getTextWidth(textConfig.getFont(), textConfig.getFontSize(), text), textY - lineOffset);</BUG><CONTEXT>public static void addTextSimpleUnderlined(PDPageContentStream stream, PdfTextStyle textConfig, float textX, float textY, String text) {addTextSimple(stream, textConfig, textX, textY, text);try {float lineOffset = textConfig.getFontSize() / 8F;stream.setStrokingColor(textConfig.getColor());<extra_id_0>stream.stroke();} catch (IOException e) {</CONTEXT>
stream.moveTo(textX, textY - lineOffset);stream.lineTo(textX + getTextWidth(textConfig.getFont(), textConfig.getFontSize(), text), textY - lineOffset);