mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-05 12:54:52 +00:00
fla text export fix
This commit is contained in:
@@ -65,6 +65,8 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
/**
|
||||
@@ -264,6 +266,11 @@ public abstract class TextTag extends CharacterTag implements DrawableTag {
|
||||
font = font2;
|
||||
}
|
||||
textHeight = rec.textHeight;
|
||||
if (font == null) {
|
||||
Logger.getLogger(TextTag.class.getName()).log(Level.SEVERE, "Font with id=" + rec.fontId + " was not found.");
|
||||
continue;
|
||||
}
|
||||
|
||||
glyphs = font.getGlyphShapeTable();
|
||||
|
||||
if (!font.hasLayout()) {
|
||||
@@ -303,7 +310,7 @@ public abstract class TextTag extends CharacterTag implements DrawableTag {
|
||||
allLeftMargins.add(currentLeftMargin);
|
||||
|
||||
if (glyphs == null) {
|
||||
// todo: ???
|
||||
Logger.getLogger(TextTag.class.getName()).log(Level.SEVERE, "Glyphs not found.");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -1507,7 +1507,7 @@ public class XFLConverter {
|
||||
break;
|
||||
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
} catch (IOException | ArrayIndexOutOfBoundsException ex) {
|
||||
logger.log(Level.SEVERE, null, ex);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user