Hi, I'm trying to implement csmtextsettings tag http://sswf.sourceforge.net/SWFalexref.html#tag_csmtextsettings into my rebol/flash dialect, but don't know how to deal with the long floats in the struct:
long float f_thickness; long float f_sharpness; The same document says it should be: a small value is a 16 bits (or less) number which represents a value with 8 bits on the left of the decimal point (and 8 on the right); when less bits are specified, we will assume that only the least significant bits were defined (often only those after the decimal point) http://sswf.sourceforge.net/SWFalexref.html#structure_definitions The same description is for double float so I'm not sure if the doc is not bad and I still don't know how to convert these values. Here are some reverse engineered correct conversions: #{00C8C200} = -100 #{00C84200} = 100 #{00484300} = 200 #{00004000} = 2 #{0000C000} = -2 #{00404000} = 3 #{00804000} = 4 #{00004100} = 8 #{00804100} = 16 Thanks for any info. Oldes -- http://box.lebeda.ws/~hmm/ _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
