Gridfittype (Textfield.gridfittype Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Returns
- The TextFormat object that represents the formatting properties for the
TextFormat
specified text.
Example
The following ActionScript code traces all of the formatting information for a text field that is
created at runtime.
this.createTextField("dyn_txt", this.getNextHighestDepth(), 0, 0, 100,
200);
dyn_txt.text = "Frank";
dyn_txt.setTextFormat(new TextFormat());
var my_fmt:TextFormat = dyn_txt.getTextFormat();
for (var prop in my_fmt) {
trace(prop+": "+my_fmt[prop]);
}
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
getNewTextFormat (TextField.getNewTextFormat method)
(TextField.setNewTextFormat method)
method)

gridFitType (TextField.gridFitType property)

public gridFitType : String
The type of grid fitting used for this TextField instance. This property applies only if the
property of the text field is set to
antiAliasType
For the
gridFitType
String value
"none"
1182
ActionScript classes
MovieClip.getNextHighestDepth()
property, you can use the following string values:
Description
Specifies no grid fitting. Horizontal and vertical lines in the glyphs
are not forced to the pixel grid. This setting is usually good for
animation or for large font sizes.
method used in this example requires Flash Player
,
setTextFormat (TextField.setTextFormat
.
"advanced"
method.
,
setNewTextFormat

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF