SWF Scout |
How to replace fonts in the existing flash movie using SWF Scout library and its SWF2XML/XML2SWF interfaces Download source code of this example: swfscout_replace_fonts_in_swf_using_swf2xml.zip (100 KB) IMPORTANT: use of XML2SWF and SWF2XML in registered version of SWF Scout requires additional "XML License" Source flash movie with Arial font:
Produced flash movie (font has been replaced from Arial to Impact):
1. Source code (converting SWF with Arial to XML): Set SWF2XML = CreateObject("SWFScout.SWF2XML") SWF2XML.InitLibrary "demo", "demo" SWF2XML.LoadSWFFromFile "TestWithArialFont.swf" 2. Source code (converting SWF with Impact to XML in order
to extract font0.dat for Impact font): Set SWF2XML = CreateObject("SWFScout.SWF2XML") SWF2XML.LoadSWFFromFile "TestWithImpactFont.swf" Now we are replacing font0.dat from (1) with font0.dat
from (2) so we replace Arial font data with Impact font data: <?xml version="1.0" encoding="UTF-8"?> 3. Finally compile XML back to SWF to get SWF with Arial to Impact replaced: Set XML2SWF = CreateObject("SWFScout.XML2SWF") XML2SWF.InitLibrary "demo", "demo" Download source code of this example: swfscout_replace_fonts_in_swf_using_swf2xml.zip (100 KB) |
|
|
||