Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The TextBaseline class is an enumeration of constant values to use in setting the
dominantBaseline
and
alignmentBaseline
properties of the ElementFormat class. You can also use it in the
baselineZero
argument of
TextBlock.createTextLine()
.
Consider this situation:
The line consists of four TextElement
objects, containing 'a', 'b', 'cccccccc', and 'X' respectively.
The element containing 'X' determines the line baselines because it is the largest element in the line.
The roman baseline of the 'X' element is aligned with the roman baseline of the line.
The ideographic top of the 'a' element is aligned with the ideographic top of the line.
The ideographic bottom of the 'b' element is aligned with the ideographic bottom of the line.
The ideographic center of the 'cccccccc' element is aligned with the ideographic center of the line.
public static const ASCENT:String = "ascent"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies an ascent baseline.
For a text element, the font and point size of the text determine this value.
For a graphic element, the text engine uses the geometric top of the element.
public static const DESCENT:String = "descent"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies a descent baseline.
For a text element, the font and point size of the text determine this value.
For a graphic element, the text element uses the geometric bottom of the element.
public static const IDEOGRAPHIC_BOTTOM:String = "ideographicBottom"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies an ideographic bottom baseline.
For a text element, the font and point size of the text determine this value.
For a graphic element, the text engine uses the geometric bottom of the element.
public static const IDEOGRAPHIC_CENTER:String = "ideographicCenter"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies an ideographic center baseline.
For a text element, the font and point size of the text determine this value.
For a graphic element, the text engine uses the geometric center of the element.
public static const IDEOGRAPHIC_TOP:String = "ideographicTop"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies an ideographic top baseline.
For a text element, the font and point size of the text determine this value.
For a graphic element, the text engine uses the geometric top of the element.
public static const ROMAN:String = "roman"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies a roman baseline.
For a text element, the font and point size of the text determine this value.
For a graphic element, the text engine uses the geometric bottom of the element.
public static const USE_DOMINANT_BASELINE:String = "useDominantBaseline"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies that the alignmentBaseline is the same as the dominantBaseline.
Use this value only to set ElementFormat.alignmentBaseline
.
© 2009 Adobe Systems Incorporated. All rights reserved.
Sat Oct 3 2009, 04:15 AM -07:00