2 Scans a swf file for strings
\r
4 Part of the swftools package.
\r
6 Copyright (c) 2000,2001 Rainer Böhme <rfxswf@reflex-studio.de>
\r
8 This file is distributed under the GPL, see file COPYING for details */
\r
12 #include "../lib/rfxswf.h"
\r
16 void fontcallback(U16 id,U8 * name)
\r
20 FontExtract(&swf,id,&font);
\r
21 printf("#< %s %s %s>\n",name,FontIsBold(font)?"bold":"",FontIsItalic(font)?"italic":"");
\r
26 { TextPrintDefineText(t,font);
\r
33 int main (int argc,char ** argv)
\r
37 { f = open(argv[1],O_RDONLY);
\r
39 { if FAILED(ReadSWF(f,&swf))
\r
40 { fprintf(stderr,"%s is not a valid SWF file or contains errors.\n",argv[1]);
\r
45 FontEnumerate(&swf,&fontcallback);
\r
48 } else fprintf(stderr,"File not found: %s\n",argv[1]);
\r
50 else fprintf(stderr,"\nreflex SWF Text Scan Utility\n(w) 2000 by Rainer Boehme <rb@reflex-studio.de>\n\nUsage: %s filename.swf\n", argv[0]);
\r