JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means waiting times in the issue tracker are very long and mostly depend on community. Sorry for the inconvenience.

List of issuesList of issues

#545 How to identify which fonts AS scripts is using
Author: user rendu2mai
Date created:
Type: question
Visibility: Everybody
Assigned to:
Labels: Fonts
State: closed Help

I have one more question. How to identify which fonts AS scripts is using? Which sentence use which font? Or is there a mark on font which is using in AS script?
user
I know in AS, textformat.font = "Arial"; is specify a font. And also embed it in fla. Any other method? How can I find it in P-code?
developer
This is the only way you wrote to find the font type of the dynamically created text fields. You should check all the TextFormats, and sometimes it is not as easy as you wrote, because the font name can be variable, too.
user
Yes, then what about searching all the font name at pushstring in P-code? Or searching 'TextFormat'? What's your suggestion?
developer
Why do you want to search it in the P-Code? Why searching in AS is not enough? (Ok, when there is a decompilation error, then it is not enough, but is there any other reason?) And it is not sure, that you will find the fontname, for examepl when you have somthing like this: function f1() { var fn = "Ar"; fn += "ial"; setFont(fn); } function setFont(f) { xxx.font = f; } Ok, probably you wont find this in a real situation, only when the code is obfuscated, but for example when the flash downloads this information from a service e.g in json format, you wont find the fontname in the source.
user
Ok, maybe I should tell it from my eye, to see which font it's using when playing SWF.
developer
State: new→closed