Re: [swfmill] [ Font import patch
Hello Tobias, when you don't want to wait until Daniel has time to apply the patch and you know how to compile the source code you can do the following steps: 1. After you extracted the swfmill source code, copy the patch in the swfmill-0.2.12.3 directory 2. Apply the patch by executing patch -p0 import_ttf.patch 3. Compile as normal Ralf Am Dienstag, den 10.04.2007, 12:31 +0200 schrieb Tobias Hinz: Hey. How to apply this patch? Im really working a lot with fonts and swfmill. Cheers, tobias SKYCO GmbH, Process and Workflow Management Schliemannstr. 5 I 10437 Berlin Tel. +49 30 55009711 I Fax +49 30 48494771 email: [EMAIL PROTECTED] http://www.skyco.de -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Ralf Fuest Gesendet: Sonntag, 8. April 2007 14:30 An: swfmill@osflash.org Betreff: [swfmill] Font import patch I tried to use swfmill together with the font DejaVuSans-ExtraLight (dejavu.sf.net), but at least 2 glyphs (p and d) are imported incorrectly. While I was trying to understand the code I found an interesting function in the FreeType API Reference (FT_Outline_Decompose) that allows to simplify the importing. All fonts I have testet seem to work with the new code. I've also testet the MSGOTHIC glyphs that showed similar errors some time ago and they also work fine. I had an problem understanding the ShapeMaker code. Does the R in lineToR, setupR,... stand for relative? This would be misleading, because setupR is absolute and not relative. I temporarily added my own setup function (setup2), but someone who knows this code should look into it again. An comparison between the new and old code is available at: http://pep-mp.de/swfmill/import_ttf.png The patch: http://pep-mp.de/swfmill/import_ttf.patch I also made another unrelated little patch, that fixed a segfault while importing an SVG file: http://pep-mp.de/swfmill/css.patch Ralf ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: [swfmill] Bitmap filter effects on buttons
Hello Brian, the current swfmill version doesn't support filters and blend modes for buttons. I've written a patch to add support for this features. Converting your sample swf to xml and back again worked. When you want to compile it yourself you'll need an SVN version of the source code, to get the codegen directory. Ralf Index: src/codegen/source.xml === --- src/codegen/source.xml (revision 209) +++ src/codegen/source.xml (working copy) @@ -358,7 +358,14 @@ type name=Button - integer name=reserved size=4 constant-size=true/ + integer name=reserved1 size=2 constant-size=true/ + if expression=ctx-swfVersion lt; 8 + integer name=reserved2 size=2 constant-size=true/ + /if + if expression=ctx-swfVersion = 8 + bit name=hasBlendMode/ + bit name=hasFilterList/ + /if bit name=hitTest prop=true/ bit name=down prop=true/ bit name=over prop=true/ @@ -370,6 +377,13 @@ if expression=ctx-tagVersion gt;= 2 object type=ColorTransform2 name=colorTransform prop=true/ /if + flagged flag=hasFilterList +byte name=numFilters/ +list type=Filter name=filters length=numFilters prop=true/ + /flagged + flagged flag=hasBlendMode + byte name=blendMode prop=true default=0/ + /flagged /if /type ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: [swfmill] Bitmap filter effects on buttons
Ralf Fuest [EMAIL PROTECTED] (on Tue, 10 Apr 2007 22:31:27 +0200): the current swfmill version doesn't support filters and blend modes for buttons. I've written a patch to add support for this features. great, thanks! it's in 0.2.12.4. got any more of these up your sleeve? -dan -- http://0xDF.com/ http://iterative.org/ ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: [swfmill] prerelease 0.2.12.4
Hello dan, I just tried 0.2.12.4 and it fails to compile. You have removed the const keywords in swft_import_ttf.cpp and now gcc 4.1.2 on ubuntu 7.04 complains that there is an invalid conversion in these lines. After adding the consts it compiled again. Ralf -- Errors: swft_import_ttf.cpp:52: error: invalid conversion from 'int (*)(FT_Vector*, void*)' to 'int (*)(const FT_Vector*, void*)' swft_import_ttf.cpp:52: error: invalid conversion from 'int (*)(FT_Vector*, void*)' to 'int (*)(const FT_Vector*, void*)' swft_import_ttf.cpp:52: error: invalid conversion from 'int (*)(FT_Vector*, FT_Vector*, void*)' to 'int (*)(const FT_Vector*, const FT_Vector*, void*)' swft_import_ttf.cpp:52: error: invalid conversion from 'int (*)(FT_Vector*, FT_Vector*, FT_Vector*, void*)' to 'int (*)(const FT_Vector*, const FT_Vector*, const FT_Vector*, void*)' ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org