mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-06 14:45:50 +00:00
#1313 Font Change
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user