diff --git a/CHANGELOG.md b/CHANGELOG.md index 1633dbfb4..5b9020e0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. ### Fixed - PDF Export - NullPointer when font of text is missing +- PDF Export - Text position on font change ## [14.3.1] - 2021-03-25 ### Fixed diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/DualPdfGraphics2D.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/DualPdfGraphics2D.java index 775a80a94..f779b3a8f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/DualPdfGraphics2D.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/DualPdfGraphics2D.java @@ -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; } }