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:
honfika@gmail.com
2014-12-19 12:36:23 +01:00
parent cf30dc8ba0
commit faafbb2c28
2 changed files with 3 additions and 1 deletions

View File

@@ -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);
}
}

View File

@@ -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();
}