Hi Chris
Thank you enormously for you efforts here.
Am putting this back on the list
My testing hasn't yet come up with anything that adds that mysterious
Unsigned Bit. Even with Groovy.ttf
The big difference I can see between your Groovy and mine is that when
played in the Flash Player, yours shows all the characters simply lined
up in several rows. Mine shows them larger, in one row, and has a
navigation system.
I assume THAT is the where the bigger filesize comes in. But why your
system is compiling a completely different file to mine is a mystery.
My Unix is a VPS, with no special installs (as I am incapable of that).
I have two copies of SWFTools. One standard 0.9.1 and one patched by
Ricardo.
Both the versions give the same (frustrating) result for me.
best
Jason
On 13/03/2011 22:45, Chris wrote:
Hi Jason,
I've checked a couple more fonts. They behave differently, but I'm not sure
exactly why as yet.
Issuing the swfcombine command with -F 10 certainly adds the FileAttributes
Tag to the SWF, however sometimes, the Unsigned Bit that differentiates between
AS3 and AS2 ( AVM2 and AVm3 ) doesn't appear to get set. Unset = 0
= AS1/2, Set = 1 = AS3.
This can be seen when Swfdump'ing some files. You either get this,
[045] 4 FILEATTRIBUTES as3
or this,
[045] 4 FILEATTRIBUTES
with the as3 text missing.
I'll check out a few more fonts, see if I can spot a pattern and work out
whom the culprit is. If so, will probably post a bug report to the list. (
I'm not up to patching the code myself yet )
On the file length issue, yes, they're very different. Again, I'm not sure
what could be causing this. Library or swftools versions maybe? My linux
system is a bit of a mish-mash. It started life as a Vector Linux install
( Slackware based ), but I've added and changed so much with source code
installs, including the Kernel, it's taken on a life of it's own!
Regards,
Chris.
On Sat, 12 Mar 2011 09:18:19 +0400
Jason<[email protected]> wrote:
Hi Chris
Thanks. Yes, yours do come up as
AWM2 compatible
I am using 0.9.1 but when I do
//$command = DIR_FS_SWFTOOLS . 'font2swf ALTEA.TTF -o
ALTEA.swf';
$command = 'font2swf -o grunge.swf grunge.ttf';
$return_var=0;
$s = exec($command, $output, $return_var);
print_r($output);
$command = 'swfcombine -z -F 10 --dummy -o grunge2.swf
grunge.swf';
$return_var=0;
$s = exec($command, $output, $return_var);
print_r($output);
$data=array();
$command = "swfdump -D grunge2.swf";
$return_var=0;
$s=exec($command,$data,$return_var);
for ($i = 0 ; $i< sizeof($data); $i++ ) {
print_r($data[$i]);
echo "<br/>";
}
The as3 atribute is missing.
I reinstalled 0.9.1, but no change.
I notice that your file is VERY different to mine (attached)
It is smaller, but also the characters are presented in a simpler manner.
Any ideas ?
Jason
On 12/03/2011 04:15, Chris wrote:
I'd guess this issue is possibly dependent upon whichever ttf font is being
used, AND the version of font2swf used to operate on it.
It needs someone more familiar with the source code than I, to dig into
any inconsistency. Matthias or Ricardo maybe..
As requested, attached tar g'zipped file contains the following:
grunge1.swf - straight conversion with font2swf
grunge2.swf - the above through swfcombine -z -F 10
vera.ttf
} similar to above but to version 9
vera.swf
SWFTools version used was 0.9.1, under Linux.
Regards,
Chris.
On Fri, 11 Mar 2011 18:07:30 +0400
Jason<[email protected]> wrote:
Hi Chris
Thanks...
I get no
as3 FILEATTRIBUTES Tag
in my tests.
Could you send me the SWF you created ? Then I can test and see if I can
read the class of the font... If I can't, then this is a dead end anyway.
The links below are groovy. This one
http://troyworks.com/blog/2007/09/17/avm2loader-converting-avm1-to-avm2/
Will come in handy for loading older clips and communicating with them
best
jason
On 11/03/2011 16:11, Chris wrote:
I picked a font and tested it.
The only difference I could see ( without dumping the byte code itself),
was that I should have added -z (--zlib ) to the swfcombine command to
get a compressed swf. The as3 FILEATTRIBUTES Tag seems to be in place,
so where the spanner in the works is I'm not sure?
What actually IS the difference between a AWM1 and AWM2 file, if it contains
no actionscript?
Some random links below, might they help?
http://troyworks.com/blog/2007/09/17/avm2loader-converting-avm1-to-avm2/
http://haxe.org/forum/thread/1679
http://code.google.com/p/apparat/
Regards,
Chris.
On Fri, 11 Mar 2011 15:20:25 +0400
Jason<[email protected]> wrote:
Hi Chris
Thanks for the suggestion.
It creates a Flash version 10 movie... but still as
AVM1Movie (ie AS1 / 2)
On 11/03/2011 15:05, Chris wrote:
On Fri, 11 Mar 2011 14:02:59 +0400
Jason<[email protected]> wrote:
Hi
I am trying to use font2swf to convert a ttf font to swf, then load the
swf into another and share the font between them.
Problem is that the swf created by font2swf is AVM1Movie, but my app is
AS3 (and needs a AVM2Movie).
Have you tried doing it this way? Does it help at all?
font2swf -o swffont.swf yourfont.ttf
swfcombine -F 10 --dummy -o swffont2.swf swffont.swf
( sorry, not that familiar with AS3 )
Regards,
Chris.