If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issues#2726 DefineFont2/3: support out of order tables
Author:
kjarosh
kjaroshDate created:
Type: feature
Visibility: Everybody
Assigned to:
Labels: Fonts
State: upgraded 

Open the attached SWF files. JPEXS shows Error on the DefineFont tag, but Flash Player
runs them perfectly fine. I'd expect to be able to preview and edit the tag.
This issue probably comes from the SWF19 specification, which says that the tables have to
be sorted (SWF19, p. 164).
> Similarly to the DefineFontInfo tag, the CodeTable (and thus also the OffsetTable,
GlyphShapeTable, and FontAdvanceTable) must be sorted in code point order.
However, SWF files not adhering to this requirement are considered valid, Flash Player
plays them fine. The glyphs are parsed according to other rules (seeking data based on
offsets), which do not require those tables to be sorted.
Ideally, it would be nice to also be able to choose the order of values in those tables in
JPEXS for reverse engineering Flash and implementing Ruffle :)
order.swf (3 KiB)
overlap.swf (3 KiB)I have fixed the reading of these fonts in nightly 3521,
however when you modify and save these tags,
the order of shapes is fixed to be as usual - that is, in standard order, not
overlapping.
You say it would be nice to be able to choose the order in FFDec. I don't really know how
should I implement it in GUI, Currently I have the treeview in raw edit mode allowing to
add and remove items, with the offsettables hidden. Changing this would be probably too
complicated.
I am not really into it. I hope you understand.
I am sorry that I can't help Ruffle with this.
State: new→upgraded
