| Package | com.flextoolbox.utils |
| Class | public class FlexFontUtil |
See also
| Method | Defined by | ||
|---|---|---|---|
|
applyTextStyles(target:TextField, source:UIComponent):void
[static]
Returns the TextFormat object that represents character formatting
information for the label.
| FlexFontUtil | ||
| Constant | Defined by | ||
|---|---|---|---|
| SIZE_MODE_FIT_TO_BOUNDS : String = "fitToBounds" [static]
Mode setting for the
autoAdjustFontSize() function to
specify that the font size should be increased to fill the maximum
amount of space in the TextField. | FlexFontUtil | ||
| SIZE_MODE_FIT_TO_BOUNDS_WITHOUT_BREAKS : String = "fitToBoundsWithoutBreaks" [static]
Mode setting for the
autoAdjustFontSize() function to
specify that the font size should be increased to fill the maximum
amount of space in the TextField. | FlexFontUtil | ||
| SIZE_MODE_NO_CHANGE : String = "noChange" [static]
Mode setting for the
autoAdjustFontSize() function to
specify that the font size should not be changed. | FlexFontUtil | ||
| TEXTFIELD_VERTICAL_MARGIN : Number = 4 [static]
The extra vertical margin around text in a TextField (the difference
between height and textHeight, if the TextField is set to auto size).
| FlexFontUtil | ||
| applyTextStyles | () | method |
public static function applyTextStyles(target:TextField, source:UIComponent):voidReturns the TextFormat object that represents character formatting information for the label.
Parameterstarget:TextField — The TextField to which we'll apply the text styles.
|
|
source:UIComponent — The source of the styles.
|
See also
| SIZE_MODE_FIT_TO_BOUNDS | constant |
public static const SIZE_MODE_FIT_TO_BOUNDS:String = "fitToBounds"
Mode setting for the autoAdjustFontSize() function to
specify that the font size should be increased to fill the maximum
amount of space in the TextField.
| SIZE_MODE_FIT_TO_BOUNDS_WITHOUT_BREAKS | constant |
public static const SIZE_MODE_FIT_TO_BOUNDS_WITHOUT_BREAKS:String = "fitToBoundsWithoutBreaks"
Mode setting for the autoAdjustFontSize() function to
specify that the font size should be increased to fill the maximum
amount of space in the TextField. Additionally, if possible, words
should not be broken apart onto multiple lines.
| SIZE_MODE_NO_CHANGE | constant |
public static const SIZE_MODE_NO_CHANGE:String = "noChange"
Mode setting for the autoAdjustFontSize() function to
specify that the font size should not be changed.
| TEXTFIELD_VERTICAL_MARGIN | constant |
public static const TEXTFIELD_VERTICAL_MARGIN:Number = 4The extra vertical margin around text in a TextField (the difference between height and textHeight, if the TextField is set to auto size).