This commit is contained in:
honfika@gmail.com
2016-12-03 15:56:00 +01:00
parent 820ef1a5f1
commit 2690b658d0
8 changed files with 52 additions and 17 deletions

View File

@@ -33,7 +33,6 @@ import com.jpexs.decompiler.flash.tags.text.TextParseException;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Insets;
import java.awt.event.ActionListener;
import java.io.IOException;
@@ -101,7 +100,7 @@ public class TextPanel extends JPanel implements TagEditorPanel {
topPanel.add(textSearchPanel);
textValue = new LineMarkedEditorPane();
add(new JScrollPane(textValue), BorderLayout.CENTER);
textValue.setFont(new Font("Monospaced", Font.PLAIN, textValue.getFont().getSize()));
textValue.setFont(Configuration.getSourceFont());
textValue.changeContentType("text/swftext");
textValue.addTextChangedListener(this::textChanged);
@@ -392,12 +391,10 @@ public class TextPanel extends JPanel implements TagEditorPanel {
try {
TextTag copyTextTag = (TextTag) textTag.cloneTag();
if (copyTextTag.setFormattedText(new MissingCharacterHandler() {
@Override
public boolean handle(TextTag textTag, FontTag font, char character) {
return false;
}
}, textValue.getText(), null)) {
ok = true;
mainPanel.showTextTagWithNewValue(textTag, copyTextTag);