mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-03 11:04:20 +00:00
#1561 Font editing - import kerning when adding characters
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user