Return to Snippet

Revision: 25230
at March 24, 2010 05:35 by LeeProbert


Updated Code
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);

Revision: 25229
at March 24, 2010 05:33 by LeeProbert


Initial Code
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);

Initial URL


Initial Description
The FontsManager class has embedded fonts in it. This is not a TLF class.

Initial Title
Creating a TextFlow Configuration object

Initial Tags
textmate, text, layout

Initial Language
ActionScript 3