Fixed #1773 - auto set flagWideCodes on FontInfo wide character add

This commit is contained in:
Jindra Petřík
2021-12-18 16:53:10 +01:00
parent 61561c6e72
commit 4812ad204e
3 changed files with 12 additions and 2 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;
@@ -145,6 +146,9 @@ public class DefineFontInfo2Tag extends FontInfoTag {
@Override
public void addFontCharacter(int index, int character) {
if (character > 255) {
fontFlagsWideCodes = true;
}
codeTable.add(index, character);
setModified(true);
}

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;
@@ -146,6 +147,9 @@ public class DefineFontInfoTag extends FontInfoTag {
@Override
public void addFontCharacter(int index, int character) {
if (character > 255) {
fontFlagsWideCodes = true;
}
codeTable.add(index, character);
setModified(true);
}