Movie Masher

open source video editing tools for your site

HomeExamplesFAQDocumentationDownload

Tag: option

Required: no
Multiple Instances: yes
Parent Tags: moviemasher
Child Tags: none
Tag Attributes: antialias, type, url

This tag is mostly used to define media servers and fonts. The type attribute indicates which kind of option is being set.

Specifying a remote media server:

<option
  type='server'
  policy='http://www.example.com/crossdomain.xml' 
/>

Specifying a custom font:

<option
  type='font'
  id='freesans'
  url='PATH/TO/FONT.swf@FreeSans' 
/>

An option tag is required for each font id referenced in a control or media tag's font attribute. Advanced antialias mapping options can be turned on for a font by specifying the antialias attribute and adding sub tags for each map:

<option
  antialias='advanced' 
  type='font'
  ...
/>
  <aliasmap incut='255' outcut='255' size='8' />
  <aliasmap incut='0' outcut='0' size='14' />
</option>

For the most precise control, a separate tag can be included for each different size that will be used. Keep in mind that font size for media items is defined as a percentage of the mash height, so the size attribute in the map must be scaled accordingly. Only integer values are used for font sizes so the result will be rounded.

© Movie Masher 2006-2010