From 28a357ef1bc62e22b44e5c7ec24fc38fbb600d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 8 May 2026 08:09:58 +0200 Subject: [PATCH] feat(text tag convertor): set text height --- .../decompiler/flash/tags/converters/TextTypeConverter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/converters/TextTypeConverter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/converters/TextTypeConverter.java index 89eb19e67..22ae82c06 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/converters/TextTypeConverter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/converters/TextTypeConverter.java @@ -133,7 +133,7 @@ public class TextTypeConverter { List leftMargins = (List) attrs.get("allLeftMargins"); @SuppressWarnings("unchecked") List letterSpacings = (List) attrs.get("allLetterSpacings"); - + det.bounds = new RECT(tag.getBounds()); det.wasStatic = true; det.noSelect = true; @@ -151,6 +151,7 @@ public class TextTypeConverter { writer.setMakeNewLines(false); RGBA firstTextColor = new RGBA(Color.BLACK); int firstFontId = -1; + int firstTextHeight = -1; try { int fontId; FontTag font = null; @@ -195,6 +196,7 @@ public class TextTypeConverter { } if (r == 0) { firstFontId = fontId; + firstTextHeight = textHeight; } } newline = false; @@ -245,6 +247,7 @@ public class TextTypeConverter { if (firstFontId > -1) { det.hasFont = true; det.fontId = firstFontId; + det.fontHeight = firstTextHeight; } ExportRectangle bounds = det.calculateTextBounds();