diff --git a/CHANGELOG.md b/CHANGELOG.md index 24342657c..e97de64a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ All notable changes to this project will be documented in this file. - Mac OS X installer fix (.pkg) - #1289 AS1/2 direct editation - variables used in inner functions must not be stored in local registers - #1283 AS3 Unbounded Vector - Vector<*> decompilation and direct editation fix +- #1294 Font editation (DefineFont2/3) - correct switching of wide character codes ## [9.0.0] - 2016-08-12 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont2Tag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont2Tag.java index 264e5e69d..60f3e2252 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont2Tag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont2Tag.java @@ -230,7 +230,7 @@ public class DefineFont2Tag extends FontTag { if (!fontFlagsWideCodes) { for (int i = 0; i < numGlyphs; i++) { long code = codeTable.get(i); - if (code > 0xffff) { + if (code > 0xff) { fontFlagsWideCodes = true; } } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont3Tag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont3Tag.java index f3eb86cee..c30a9ea2b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont3Tag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFont3Tag.java @@ -220,7 +220,7 @@ public class DefineFont3Tag extends FontTag { if (!fontFlagsWideCodes) { for (int i = 0; i < numGlyphs; i++) { long code = codeTable.get(i); - if (code > 0xffff) { + if (code > 0xff) { fontFlagsWideCodes = true; } }