/ Published in: ActionScript 3

The FontsManager class has embedded fonts in it. This is not a TLF class.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
config = Configuration(TextFlow.defaultConfiguration).clone(); var linkNormalFormat:TextLayoutFormat = new TextLayoutFormat(); linkNormalFormat.color = 0x000000; var linkHoverFormat:TextLayoutFormat = new TextLayoutFormat(); linkHoverFormat.color = 0x999999; var defaultFormat:TextLayoutFormat = new TextLayoutFormat(); defaultFormat.paddingTop = 6; defaultFormat.color = 0x333333; defaultFormat.textAlign = TextAlign.JUSTIFY; defaultFormat.textAlignLast = TextAlign.JUSTIFY; defaultFormat.fontSize = 10; defaultFormat.lineHeight = 12; defaultFormat.fontLookup = FontLookup.EMBEDDED_CFF; defaultFormat.typographicCase = TypographicCase.UPPERCASE; defaultFormat.renderingMode = RenderingMode.CFF; defaultFormat.fontFamily = FontsManager.NOVAMONO; config.textFlowInitialFormat = defaultFormat; config.defaultLinkNormalFormat = linkNormalFormat; config.defaultLinkHoverFormat = linkHoverFormat; config.overflowPolicy = OverflowPolicy.FIT_DESCENDERS; textFlow = new TextFlow(config);
Comments
