From c1d280f50e4ba6fcc54ef468683012ec71a39a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 10 Oct 2016 21:20:32 +0200 Subject: [PATCH] Issue #1294 Font editation (DefineFont2/3) - correct switching of wide character codes --- CHANGELOG.md | 1 + .../src/com/jpexs/decompiler/flash/tags/DefineFont2Tag.java | 2 +- .../src/com/jpexs/decompiler/flash/tags/DefineFont3Tag.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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; } }