mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-14 04:22:54 +00:00
setting for including the version number in the exported fonts for debugging (to generate exactly the same binary TTF files)
This commit is contained in:
@@ -198,6 +198,10 @@ public class Configuration {
|
||||
@ConfigurationCategory("debug")
|
||||
public static final ConfigurationItem<Boolean> dumpTags = null;
|
||||
|
||||
@ConfigurationDefaultBoolean(true)
|
||||
@ConfigurationCategory("debug")
|
||||
public static final ConfigurationItem<Boolean> setFFDecVersionInExportedFont = null;
|
||||
|
||||
@ConfigurationDefaultInt(60)
|
||||
@ConfigurationCategory("limit")
|
||||
public static final ConfigurationItem<Integer> decompilationTimeoutSingleMethod = null;
|
||||
|
||||
@@ -26,6 +26,7 @@ import com.jpexs.decompiler.flash.EventListener;
|
||||
import com.jpexs.decompiler.flash.RetryTask;
|
||||
import com.jpexs.decompiler.flash.RunnableIOEx;
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.configuration.Configuration;
|
||||
import com.jpexs.decompiler.flash.exporters.modes.FontExportMode;
|
||||
import com.jpexs.decompiler.flash.exporters.settings.FontExportSettings;
|
||||
import com.jpexs.decompiler.flash.exporters.shape.PathExporter;
|
||||
@@ -143,7 +144,12 @@ public class FontExporter {
|
||||
String cop = t.getCopyright();
|
||||
|
||||
f.getEngine().setCopyrightYear(cop == null ? "" : cop);
|
||||
f.setAuthor(ApplicationInfo.shortApplicationVerName);
|
||||
if (Configuration.setFFDecVersionInExportedFont.get()){
|
||||
f.setAuthor(ApplicationInfo.shortApplicationVerName);
|
||||
} else {
|
||||
f.setAuthor(ApplicationInfo.SHORT_APPLICATION_NAME);
|
||||
}
|
||||
|
||||
f.setVersion("1.0");
|
||||
|
||||
SWF swf = t.getSwf();
|
||||
|
||||
Reference in New Issue
Block a user