#1561 Font editing - import kerning when adding characters

This commit is contained in:
Jindra Petřík
2021-02-28 20:34:02 +01:00
parent b9e60534cf
commit 9fffe11861
7 changed files with 143 additions and 33 deletions

View File

@@ -17,6 +17,7 @@
package com.jpexs.decompiler.flash.gui;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.tags.base.FontTag;
import com.jpexs.decompiler.flash.tags.font.CharacterRanges;
import com.jpexs.helpers.Helper;
import java.awt.BorderLayout;
@@ -383,6 +384,7 @@ public class FontEmbedDialog extends AppDialog {
File selfile = Helper.fixDialogFile(fc.getSelectedFile());
try {
customFont = Font.createFont(Font.TRUETYPE_FONT, selfile);
FontTag.addCustomFont(customFont, selfile);
ttfFileRadio.setText(translate("ttffile.selection").replace("%fontname%", customFont.getName()).replace("%filename%", selfile.getName()));
return true;
} catch (FontFormatException ex) {