-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error parsing DEFINEFONT3 Tag #18
Comments
Solved. Adobe Flash Player reads the offsetTable first, then look up the glyphShapeTable for a given character when encountered. So some SWF may have glyphShapeTable not immediately following codeTableOffset or vacancies between glyphShape entries, however, as the SWF provided correct offsetTable, it can be recognised by Adobe Flash Player. |
The dropbox link is no longer available. Could you provide the example again? |
I did not fully understand your explanations, but I tested it against my own parsers and it seem to work. Here are the relevant functions, I hope it may help to fix it here: I am effectively reading the offset table first and then using it to parse the glyphs. (Your example also helped me find out that my implementation does not discard the terminating null-byte of the font name, thanks.) |
I'm parsing some swf when I encountered this error. The file does't seem to conform to the swf file spec, however, Adobe Flash Player can play it.
Here is the file: https://www.dropbox.com/s/n02lbplm77exmhp/page003.swf
The text was updated successfully, but these errors were encountered: