Fixed: PDF Export - Text position on font change

This commit is contained in:
Jindra Petřík
2021-03-26 19:46:55 +01:00
parent 57f17daec3
commit 0087cfb05d
2 changed files with 2 additions and 1 deletions

View File

@@ -614,11 +614,11 @@ public class DualPdfGraphics2D extends Graphics2D implements BlendModeSetable, G
text.append(dynamicEntry.character);
deltaX += entry.glyphAdvance;
}
}
if (text.length() > 0) {
drawText(x, y, trans, textColor, existingFonts, font, text.toString(), textHeight, pdfGraphics);
}
x = x + deltaX;
}
}