#668: Add missing character fix (Font tag was not saved)

This commit is contained in:
honfika@gmail.com
2014-09-07 20:31:23 +02:00
parent 6cfd01dc3d
commit 32e839f66a
4 changed files with 15 additions and 4 deletions

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.tags;
import com.jpexs.decompiler.flash.SWF;
@@ -410,6 +411,8 @@ public class DefineFont2Tag extends FontTag {
if (!exists) {
numGlyphs++;
}
setModified(true);
}
@Override

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.tags;
import com.jpexs.decompiler.flash.SWF;
@@ -414,6 +415,8 @@ public class DefineFont3Tag extends FontTag {
if (!exists) {
numGlyphs++;
}
setModified(true);
}
@Override

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.tags;
import com.jpexs.decompiler.flash.SWFInputStream;
@@ -297,6 +298,7 @@ public class DefineFontTag extends FontTag {
glyphShapeTable.set(pos, shp);
}
setModified(true);
}
@Override

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.tags.gfx;
import com.jpexs.decompiler.flash.SWF;
@@ -179,6 +180,8 @@ public final class DefineCompactedFont extends FontTag implements DrawableTag {
font.glyphs.set(pos, new GlyphType(shp.shapeRecords));
shapeCache.set(pos, font.glyphs.get(pos).toSHAPE());
}
setModified(true);
SWF.clearImageCache();
}