mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 12:07:23 +00:00
redraw preview on zoom, font name cache key fixed when the font name is different from the name in the assigned DefineFontNameTag
This commit is contained in:
@@ -553,7 +553,7 @@ public class FontPanel extends javax.swing.JPanel {
|
||||
SWF swf = f.getSwf();
|
||||
String selectedName = ((FontFace) fontFaceSelection.getSelectedItem()).font.getFontName(Locale.ENGLISH);
|
||||
swf.sourceFontNamesMap.put(f.getFontId(), selectedName);
|
||||
Configuration.addFontPair(swf.getShortFileName(), f.getFontId(), f.getFontName(), selectedName);
|
||||
Configuration.addFontPair(swf.getShortFileName(), f.getFontId(), f.getFontNameIntag(), selectedName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -415,6 +415,7 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
|
||||
@Override
|
||||
public synchronized void zoom(double zoom) {
|
||||
this.zoom = zoom;
|
||||
shouldDraw.set(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -491,6 +492,7 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
|
||||
|
||||
time = 0;
|
||||
drawReady = false;
|
||||
shouldDraw.set(true);
|
||||
play();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user