From dd43e3a688ce83c0427410732aac0314ff814d11 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 1 Feb 2004 17:25:28 +0000 Subject: [PATCH] small fixes. --- doc/swfc.xml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/doc/swfc.xml b/doc/swfc.xml index 1b8bdc7..106efac 100644 --- a/doc/swfc.xml +++ b/doc/swfc.xml @@ -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:
- - - - - - - -- 1.7.10.4