flash.text

# CSMSettings - AS3

Package | flash.text
Class | public final class CSMSettings
Inheritance | CSMSettings Object

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0, Flash Player 9

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.

Related API Elements

TextRenderer.setAdvancedAntiAliasingTable()

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : 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

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | CSMSettings(fontSize:Number, insideCutoff:Number, outsideCutoff:Number) Creates a new CSMSettings object which stores stroke values for custom anti-aliasing settings. | CSMSettings
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Property Detail

### fontSize

property

`public var fontSize:Number`

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0, Flash Player 9

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.

Related API Elements

TextRenderer.setAdvancedAntiAliasingTable()

### insideCutoff

property

`public var insideCutoff:Number`

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0, Flash Player 9

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

Related API Elements

TextRenderer.setAdvancedAntiAliasingTable()

### outsideCutoff

property

`public var outsideCutoff:Number`

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0, Flash Player 9

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

Related API Elements

TextRenderer.setAdvancedAntiAliasingTable()
Constructor Detail

### CSMSettings

()
Constructor

`public function CSMSettings(fontSize:Number, insideCutoff:Number, outsideCutoff:Number)`

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 1.0, Flash Player 9

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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00