创建TextFlow配置对象
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了创建TextFlow配置对象相关的知识,希望对你有一定的参考价值。
The FontsManager class has embedded fonts in it. This is not a TLF class.
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);
以上是关于创建TextFlow配置对象的主要内容,如果未能解决你的问题,请参考以下文章
ActionScript 3 从TextFlow中删除所有FlowElement对象
检测文本何时进入TextFlow对象中ContainerController的结尾
检测文本何时进入TextFlow对象中ContainerController的结尾
ActionScript 3 检测文本何时在TextFlow对象中运行到ContainerController的末尾