Fixed Do not display fonts added to stage (for example in testdata/as2.swf, the vertical text - sprite 10)

This commit is contained in:
Jindra Petřík
2023-03-12 22:42:08 +01:00
parent e907a37d2e
commit 4654d1d610
3 changed files with 17 additions and 3 deletions

View File

@@ -5600,7 +5600,9 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
if (frame < 0 || frame >= pageCount) {
frame = 0;
}
//TODO: make this static texts instead of FontTag as drawable.
//We do not want to draw fonts directly added to stage as
//Fonts are really added to stage in some corner cases like for vertical text.
Frame f = new Frame(timeline, 0);
DepthState ds = new DepthState(tag.getSwf(), f);
ds.characterId = ((CharacterTag) tag).getCharacterId();