X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=doc%2Fswfc.xml;h=8be7cca3ff174568e04a61dd66992abe8c8054ab;hb=cbb0e3fba6b522cf44e42a17d1631830cd0d590f;hp=1b8bdc7c69edff75e9093f0573d388af232454cf;hpb=ab0381ad74443bf2cb1250820d01adee6f014dfc;p=swftools.git diff --git a/doc/swfc.xml b/doc/swfc.xml index 1b8bdc7..8be7cca 100644 --- a/doc/swfc.xml +++ b/doc/swfc.xml @@ -89,7 +89,7 @@ Boxes: Though swfc is a command-line utility, there also exists a nice graphical - frontend for it, called Swifty. + frontend for it, called Swifty. @@ -178,11 +178,27 @@ If you have a SWF with a font you would like to use, do a Then write down the font ID of the font, and do a - swfextract -f file.swf -o myfont.swf + swfextract -f <fontid> file.swf -o myfont.swf . +

This will give you a file named myfont.swf which you can also use in the filename parameter of .font. +

+ +

+Furthermore, you can convert TTF and Type1 +fonts into SWF using font2swf: + + font2swf Arial.ttf -o Arial.swf + +The nice advantage of this is that you can play +Arial.swf in the flash player and see what the +font looks like. +(Also, loading a font in SWF format is slighly +faster than from a TTF file, as with TTFs spline +conversion has to take place). +

@@ -201,7 +217,7 @@ objects which you can use in other commands. .flash name="fontoutline.swf" .font Arial "Arial.swf" - .textshape helloworld font="arial" text="Hello World" + .textshape helloworld font=Arial text="Hello World" .filled filled_helloworld outline=helloworld fill=blue line=5 color=green .put filled_helloworld .end @@ -216,7 +232,7 @@ of a plain color: .flash name="fontgradient.swf" .font Arial "Arial.swf" - .textshape helloworld font="arial" text="Hello World" + .textshape helloworld font=Arial text="SHADE" .gradient whitefade: 0% black @@ -224,7 +240,7 @@ of a plain color: 100% yellow .end - .filled filled_helloworld outline=helloworld fill=blue line=5 color=green + .filled filled_helloworld outline=helloworld fill=whitefade line=1 color=#2c2c2c .put filled_helloworld .end @@ -274,13 +290,6 @@ which is used here together with the alpha parameter of .change:
- - - - - - -