mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-25 15:35:09 +00:00
Fixed: #2332 Imported fonts by class name not available in texts
This commit is contained in:
@@ -1270,13 +1270,11 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
if (fontClass == null) {
|
||||
return null;
|
||||
}
|
||||
for (Tag t : getTags()) {
|
||||
if (t instanceof FontTag) {
|
||||
if (((FontTag) t).getClassNames().contains(fontClass)) {
|
||||
return (FontTag) t;
|
||||
}
|
||||
}
|
||||
CharacterTag t = getCharacterByClass(fontClass);
|
||||
if (t instanceof FontTag) {
|
||||
return (FontTag) t;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -1290,7 +1288,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
if (fontName == null) {
|
||||
return null;
|
||||
}
|
||||
for (Tag t : getTags()) {
|
||||
for (Tag t : getCharacters(true).values()) {
|
||||
if (t instanceof FontTag) {
|
||||
if (fontName.equals(((FontTag) t).getFontName())) {
|
||||
return (FontTag) t;
|
||||
@@ -1313,7 +1311,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
if (fontName == null) {
|
||||
return null;
|
||||
}
|
||||
for (Tag t : getTags()) {
|
||||
for (Tag t : getCharacters(true).values()) {
|
||||
if (t instanceof FontTag) {
|
||||
FontTag ft = (FontTag) t;
|
||||
if (fontName.equals(ft.getFontNameIntag()) && ft.isBold() == bold && ft.isItalic() == italic) {
|
||||
|
||||
Reference in New Issue
Block a user