Packageflash.text
Classpublic final class CSMSettings
InheritanceCSMSettings Inheritance Object

Language version: ActionScript ActionScript 3.0
Runtime version: 

The CSMSettings class contains properties for use with the TextRenderer.setAdvancedAntiAliasingTable() method to provide continuous stroke modulation (CSM). CSM is the continuous modulation of both stroke weight and edge sharpness.

See also

TextRenderer.setAdvancedAntiAliasingTable()


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  fontSize : Number
The size, in pixels, for which the settings apply.
CSMSettings
  insideCutoff : Number
The inside cutoff value, above which densities are set to a maximum density value (such as 255).
CSMSettings
  outsideCutoff : Number
The outside cutoff value, below which densities are set to zero.
CSMSettings
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
  
CSMSettings(fontSize:Number, insideCutoff:Number, outsideCutoff:Number)
Creates a new CSMSettings object which stores stroke values for custom anti-aliasing settings.
CSMSettings
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property detail
fontSizeproperty
public var fontSize:Number

Language version: ActionScript 3.0
Runtime version: 

The size, in pixels, for which the settings apply.

The advancedAntiAliasingTable array passed to the setAdvancedAntiAliasingTable() method can contain multiple entries that specify CSM settings for different font sizes. Using this property, you can specify the font size to which the other settings apply.

See also

insideCutoffproperty 
public var insideCutoff:Number

Language version: ActionScript 3.0
Runtime version: 

The inside cutoff value, above which densities are set to a maximum density value (such as 255).

See also

outsideCutoffproperty 
public var outsideCutoff:Number

Language version: ActionScript 3.0
Runtime version: 

The outside cutoff value, below which densities are set to zero.

See also

Constructor detail
CSMSettings()constructor
public function CSMSettings(fontSize:Number, insideCutoff:Number, outsideCutoff:Number)

Language version: ActionScript ActionScript 3.0
Runtime version: 

Creates a new CSMSettings object which stores stroke values for custom anti-aliasing settings.

Parameters
fontSize:Number — The size, in pixels, for which the settings apply.
 
insideCutoff:Number — The inside cutoff value, above which densities are set to a maximum density value (such as 255).
 
outsideCutoff:Number — The outside cutoff value, below which densities are set to zero.