Wiki.Novemberborn, sIFR 3 Documentation & FAQ

Flash Configuration

Open flash/Options.as. You can specify the following properties:

domains (Array)
Array containing domains for which sIFR may render text. Used to prevent hotlinking. Use * to allow all domains. You can use a wild card to match subdomains as well, although you'll have to specify the main domain separately. For example: sIFR.domains = ['*.example.com', 'example.com'];.
defaultKerning (Boolean)
Whether kerning is enabled by default. This can be overriden from the client side. See also Livedoc 2811.
defaultSharpness (Number)
Default value which can be overriden from the client side. See also Livedoc 2778.
defaultThickness (Number)
Default value which can be overriden from the client side. See also Livedoc 2788.
defaultOpacity (Number)
Default value which can be overriden from the client side. See also Livedoc 2732.
defaultBlendMode (Number)
Default value which can be overriden from the client side. See also Livedoc 2444.
enforcedGridFitType (String)
Overrides the grid fit type as defined on the client side. See also Livedoc 2747.
preserveAntiAlias (Boolean)
If true sIFR won’t override the anti aliasing set in the Flash IDE when exporting. Thickness and sharpness won’t be affected either.
conditionalAntiAlias (Boolean)
If true sIFR will disable anti-aliasing if the font size is larger than 48. This setting is independent from preserveAntiAlias.
antiAliasType (String)
Sets the anti alias type. By default it’s advanced. See also Livedoc 2733.
filters (Array)
Flash filters can be added to this array and will be applied to the text field.

CSS can be specified inside the Flash movie using sIFR.styles.parseCSS(), which takes the CSS code as its argument.

When you’re done you’ll need to re-export the Flash movie for the changes to take effect.


Updated on February 20, 2009 08:49 by Mark Wubben (80.167.172.98)

| See revision | Back in time (12 older revisions)


Navigation

sIFR 3 Documentation & FAQ

sIFR lets you use your favorite font on your websites by cleverly working with Flash, JavaScript and CSS. Here you'll find it's documentation and the FAQ. Leave a link to your implementation in the Examples!

Please donate

If you like sIFR, please consider making a donation so Mark can spend more time on it. Thank you.

Inside this wiki

Other destinations

Licensing

This wiki is licensed under the GNU Free Documentation License.

Miscellaneous

TextDrive

RubyOnRails