If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.
![List of issues](/flash/images/issue_list.png)
#2176 Text search does not work for text with custom spacing
Author:
nosamu
![user user](/flash/images/user.png)
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: FontsSearchText
State: upgraded ![Help](/flash/images/help.png)
![Help](/flash/images/help.png)
> What steps will reproduce the problem?
1. Load the attached SWF file in FFDec.
2. Click the "Text search" button and select "Search in texts".
3. Search for "Kim Verbon".
> What is the expected output? What do you see instead?
Expected result: DefineText (1996) should be shown.
Actual result: String "Kim Verbon" not found.
This happens because the text field has custom spacing between its characters. FFDec
displays text field 1996 as:
K[space -35]i[space -16]m[space 17] V[space -29]e[space 11]rb[space 15]o[space 3]n[space
6]
FFDec should search the original strings without the [space xyz] values.
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
FFDec version: 20.1.0 (stable)
Operating system: Windows 10 64-bit
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
![Download](/flash/images/disk.png)
In nightly 2756,
it will find the DefineText (1996),
but it won't hilight the text inside the textarea,
also subsequent Ctrl+F does not find the other occurences inside the textarea,
implementing something like that would be too difficult.
Also, if you want to avoid many [space xxx] occurences inside texts, you should
properly set "Source font" for each of the font, especially on fonts without layout like
that one used in this text (Berlin Sans FB).
FFDec takes the letterspacing from the font layout if available. If font has no layout
(like in this case),
substitute "Source font" from local computer is used. If this source font is set wrong,
then it will have [space xxx] differences on each character.
See attachment.
![Download](/flash/images/disk.png)
State: new→upgraded
Works well, thank you! And I appreciate the explanation about the source font - I can
confirm that installing the font gets rid of the [space xyz] items.