X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfdump.c;h=8eaeb2564f7a543eee15d81c46b7f96eb64c36f7;hb=9dd3c056922a1f370c0543c43adae040723bc454;hp=a74c453f08760a5f5fdb271b90b92f815c3416cf;hpb=c9ac94e8c4e886e7cbed92905a1d4584b417ad8e;p=swftools.git diff --git a/src/swfdump.c b/src/swfdump.c index a74c453..8eaeb25 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -167,6 +167,7 @@ void args_callback_usage(char *name) printf("-D , --full Show everything. Same as -atp\n"); printf("-V , --version Print version info and exit\n"); printf("-e , --html Print out html code for embedding the file\n"); + printf("-E , --xhtml Print out xhtml code for embedding the file\n"); printf("-a , --action Disassemble action tags\n"); printf("-t , --text Show text fields (like swfstrings).\n"); printf("-s , --shapes Show shape coordinates/styles\n"); @@ -275,8 +276,12 @@ void textcallback(void*self, int*glyphs, int*ypos, int nr, int fontid, int fonts if(glyphs[t] >= fonts[font]->numchars /*glyph is in range*/ || !fonts[font]->glyph2ascii /* font has ascii<->glyph mapping */ ) a = glyphs[t]; - else - a = fonts[font]->glyph2ascii[glyphs[t]]; + else { + if(fonts[font]->glyph2ascii[glyphs[t]]) + a = fonts[font]->glyph2ascii[glyphs[t]]; + else + a = glyphs[t]; + } } else { a = glyphs[t]; }