mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-13 13:58:06 +00:00
Fixed FLA export - missing AS linkage class for fonts
This commit is contained in:
@@ -26,6 +26,7 @@ All notable changes to this project will be documented in this file.
|
||||
- FLA export - Sprites which do not end with ShowFrame tag
|
||||
- [PR109] FLA export - large font size of DefineEditText
|
||||
- [PR110] FLA export - image instances
|
||||
- FLA export - missing AS linkage class for fonts
|
||||
|
||||
### Changed
|
||||
- [#2070] String values inside SWF to XML export are backslash escaped
|
||||
|
||||
@@ -2534,7 +2534,7 @@ public class XFLConverter {
|
||||
}
|
||||
}
|
||||
|
||||
private static void convertFonts(ReadOnlyTagList tags, XFLXmlWriter writer) throws XMLStreamException {
|
||||
private static void convertFonts(Map<Integer, String> characterClasses, ReadOnlyTagList tags, XFLXmlWriter writer) throws XMLStreamException {
|
||||
boolean hasFont = false;
|
||||
for (Tag t : tags) {
|
||||
if (t instanceof FontTag) {
|
||||
@@ -2620,6 +2620,16 @@ public class XFLConverter {
|
||||
"size", "0",
|
||||
"id", Integer.toString(fontId),
|
||||
"embedRanges", embedRanges});
|
||||
|
||||
boolean linkageExportForAS = false;
|
||||
if (characterClasses.containsKey(fontId)) {
|
||||
linkageExportForAS = true;
|
||||
writer.writeAttribute("linkageClassName", characterClasses.get(fontId));
|
||||
}
|
||||
if (linkageExportForAS) {
|
||||
writer.writeAttribute("linkageExportForAS", true);
|
||||
}
|
||||
|
||||
if (!"".equals(embeddedCharacters)) {
|
||||
writer.writeAttribute("embeddedCharacters", embeddedCharacters);
|
||||
}
|
||||
@@ -3784,7 +3794,7 @@ public class XFLConverter {
|
||||
domDocument.writeAttribute("height", doubleToString(height));
|
||||
}
|
||||
|
||||
convertFonts(swf.getTags(), domDocument);
|
||||
convertFonts(characterClasses, swf.getTags(), domDocument);
|
||||
convertLibrary(swf, characterVariables, characterClasses, characterScriptPacks, nonLibraryShapes, backgroundColor, swf.getTags(), characters, files, datfiles, flaVersion, domDocument);
|
||||
|
||||
//domDocument.writeStartElement("timelines");
|
||||
|
||||
Reference in New Issue
Block a user