Font characters are being condensed for some reason.
A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: Font characters are being condensed for some reason.

  1. #1
    imagination through stupidity Sybersnake's Avatar
    Join Date
    Apr 2001
    Location
    P3X-3113
    Posts
    1,238

    Font characters are being condensed for some reason.

    When I create a TextField manually the font shows up all condensed for some reason.

    I can go in Flash CC and it works correctly.

    font_generated_flashcc.png

    When I do it manually.

    font_manual_as3.png

    Flash automatically generates this:

    Code:
    {
    	visible = true
    	scrollH = 0
    	metaData = null
    	scaleX = 1
    	accessibilityImplementation = null
    	mask = null
    	selectable = false
    	doubleClickEnabled = false
    	backgroundColor = 16777215
    	displayAsPassword = false
    	alwaysShowSelection = false
    	mouseEnabled = true
    	restrict = null
    	border = false
    	focusRect = null
    	root{
    		currentLabel = null
    		currentFrameLabel = null
    		accessibilityImplementation = null
    		scenes{
    			__id__ = 1003
    			__clazz__ = Array
    			0{
    				__id__ = 1004
    				name = Scene 1
    				labels{
    					__id__ = 1005
    					__clazz__ = Array
    				}
    				__clazz__ = flash.display::Scene
    				numFrames = 1
    			}
    		}
    		visible = true
    		doubleClickEnabled = false
    		metaData = null
    		trackAsMenu = false
    		mask = null
    		mouseEnabled = true
    		useHandCursor = true
    		focusRect = null
    		stage{}
    		tabIndex = -1
    		rotation = 0
    		root{
    			__id__ = 1056
    			__ref__ = 1002
    			__clazz__ = Object
    		}
    		tabEnabled = false
    		accessibilityProperties = null
    		totalFrames = 1
    		name = root1
    		enabled = true
    		foo{
    			__id__ = 1055
    			__ref__ = 1001
    			__clazz__ = Object
    		}
    		soundTransform{
    			leftToRight = 0
    			volume = 1
    			rightToLeft = 0
    			__clazz__ = flash.media::SoundTransform
    			__id__ = 1006
    			rightToRight = 1
    			pan = 0
    			leftToLeft = 1
    		}
    		loaderInfo{}
    		framesLoaded = 1
    		currentFrame = 1
    		currentScene{
    			__id__ = 1007
    			name = Scene 1
    			labels{
    				__id__ = 1008
    				__clazz__ = Array
    			}
    			__clazz__ = flash.display::Scene
    			numFrames = 1
    		}
    		mouseChildren = true
    		tabChildren = true
    		transform{
    			pixelBounds{
    				height = 186
    				width = 398
    				__id__ = 1012
    				right = 428
    				y = 26
    				size{
    					__id__ = 1015
    					y = 186
    					__clazz__ = flash.geom::Point
    					x = 398
    					length = 439.31765272977594
    				}
    				__clazz__ = flash.geom::Rectangle
    				bottomRight{
    					__id__ = 1014
    					y = 212
    					__clazz__ = flash.geom::Point
    					x = 428
    					length = 477.62746989678055
    				}
    				bottom = 212
    				left = 30
    				topLeft{
    					__id__ = 1013
    					y = 26
    					__clazz__ = flash.geom::Point
    					x = 30
    					length = 39.698866482558415
    				}
    				x = 30
    				top = 26
    			}
    			perspectiveProjection{
    				__id__ = 1016
    				focalLength = 528.2700805664063
    				__clazz__ = flash.geom::PerspectiveProjection
    				fieldOfView = 55
    				projectionCenter{
    					__id__ = 1017
    					y = 200
    					__clazz__ = flash.geom::Point
    					x = 275
    					length = 340.03676271838606
    				}
    			}
    			matrix{
    				ty = 0
    				d = 1
    				__clazz__ = flash.geom::Matrix
    				tx = 0
    				c = 0
    				__id__ = 1018
    				a = 1
    				b = 0
    			}
    			__clazz__ = flash.geom::Transform
    			concatenatedColorTransform{
    				greenMultiplier = 1
    				blueOffset = 0
    				redMultiplier = 1
    				__clazz__ = flash.geom::ColorTransform
    				greenOffset = 0
    				__id__ = 1019
    				alphaOffset = 0
    				color = 0
    				redOffset = 0
    				blueMultiplier = 1
    				alphaMultiplier = 1
    			}
    			__id__ = 1011
    			concatenatedMatrix{
    				ty = 0
    				d = 1
    				__clazz__ = flash.geom::Matrix
    				tx = 0
    				c = 0
    				__id__ = 1020
    				a = 1
    				b = 0
    			}
    			matrix3D = null
    			colorTransform{
    				greenMultiplier = 1
    				blueOffset = 0
    				redMultiplier = 1
    				__clazz__ = flash.geom::ColorTransform
    				greenOffset = 0
    				__id__ = 1021
    				alphaOffset = 0
    				color = 0
    				redOffset = 0
    				blueMultiplier = 1
    				alphaMultiplier = 1
    			}
    		}
    		hitArea = null
    		scale9Grid = null
    		textSnapshot{
    			__id__ = 1010
    			__clazz__ = flash.text::TextSnapshot
    			charCount = 20
    		}
    		dropTarget = null
    		__clazz__ = WindowsFonts_fla::MainTimeline
    		numChildren = 2
    		contextMenu = null
    		blendMode = normal
    		z = 0
    		filters{
    			__id__ = 1022
    			__clazz__ = Array
    		}
    		y = 0
    		graphics{
    			__id__ = 1023
    			__clazz__ = flash.display::Graphics
    		}
    		scrollRect = null
    		alpha = 1
    		x = 0
    		width = 398
    		opaqueBackground = null
    		height = 185.35
    		buttonMode = false
    		cacheAsBitmap = false
    		isPlaying = false
    		__id__ = 1002
    		rotationZ = 0
    		mouseX = 550
    		needsSoftKeyboard = false
    		rotationY = 0
    		parent{}
    		scaleX = 1
    		softKeyboardInputAreaOfInterest = null
    		rotationX = 0
    		scaleY = 1
    		mouseY = 400
    		scaleZ = 1
    		currentLabels{
    			__id__ = 1009
    			__clazz__ = Array
    		}
    	}
    	stage{}
    	tabIndex = -1
    	rotation = 0
    	maxChars = 0
    	tabEnabled = false
    	caretIndex = 15
    	accessibilityProperties = null
    	numLines = 1
    	rotationY = 0
    	bottomScrollV = 1
    	name = foo
    	loaderInfo{}
    	thickness = 0
    	rotationZ = 0
    	type = dynamic
    	mouseWheelEnabled = true
    	selectionBeginIndex = 15
    	autoSize = none
    	scaleZ = 1
    	maxScrollH = 0
    	textWidth = 120.5
    	mouseY = 206
    	useRichTextClipboard = false
    	background = false
    	gridFitType = pixel
    	z = 0
    	transform{
    		pixelBounds{
    			height = 0
    			width = 0
    			__id__ = 1025
    			right = 125
    			y = 193
    			size{
    				__id__ = 1028
    				y = 0
    				__clazz__ = flash.geom::Point
    				x = 0
    				length = 0
    			}
    			__clazz__ = flash.geom::Rectangle
    			bottomRight{
    				__id__ = 1027
    				y = 193
    				__clazz__ = flash.geom::Point
    				x = 125
    				length = 229.94347131414713
    			}
    			bottom = 193
    			left = 125
    			topLeft{
    				__id__ = 1026
    				y = 193
    				__clazz__ = flash.geom::Point
    				x = 125
    				length = 229.94347131414713
    			}
    			x = 125
    			top = 193
    		}
    		perspectiveProjection = null
    		matrix{
    			a = 1
    			d = 1
    			__clazz__ = flash.geom::Matrix
    			tx = 125.05
    			c = 0
    			__id__ = 1029
    			ty = 193.65
    			b = 0
    		}
    		__clazz__ = flash.geom::Transform
    		concatenatedColorTransform{
    			greenMultiplier = 1
    			blueOffset = 0
    			redMultiplier = 1
    			__clazz__ = flash.geom::ColorTransform
    			greenOffset = 0
    			__id__ = 1030
    			alphaOffset = 0
    			color = 0
    			redOffset = 0
    			blueMultiplier = 1
    			alphaMultiplier = 1
    		}
    		__id__ = 1024
    		concatenatedMatrix{
    			a = 1
    			d = 1
    			__clazz__ = flash.geom::Matrix
    			tx = 125
    			c = 0
    			__id__ = 1031
    			ty = 193.75
    			b = 0
    		}
    		matrix3D = null
    		colorTransform{
    			greenMultiplier = 1
    			blueOffset = 0
    			redMultiplier = 1
    			__clazz__ = flash.geom::ColorTransform
    			greenOffset = 0
    			__id__ = 1032
    			alphaOffset = 0
    			color = 0
    			redOffset = 0
    			blueMultiplier = 1
    			alphaMultiplier = 1
    		}
    	}
    	length = 15
    	scale9Grid = null
    	blendMode = normal
    	cacheAsBitmap = false
    	antiAliasType = advanced
    	embedFonts = true
    	contextMenu = null
    	maxScrollV = 1
    	defaultTextFormat{
    		blockIndent = 0
    		align = left
    		target = 
    		bullet = false
    		bold = false
    		url = 
    		__id__ = 1033
    		italic = false
    		underline = false
    		leading = 2
    		color = 26316
    		indent = 0
    		kerning = false
    		__clazz__ = flash.text::TextFormat
    		display = block
    		rightMargin = 0
    		letterSpacing = 0
    		size = 14
    		leftMargin = 0
    		tabStops{
    			__id__ = 1034
    			__clazz__ = Array
    		}
    		font = Lucida Sans Regular
    	}
    	scrollRect = null
    	__clazz__ = flash.text::TextField
    	textInteractionMode = normal
    	filters{
    		__id__ = 1035
    		__clazz__ = Array
    	}
    	htmlText = <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Sans Regular" SIZE="14" COLOR="#0066CC" LETTERSPACING="0" KERNING="0">1 member online</FONT></P></TEXTFORMAT>
    	text = 1 member online
    	y = 191.65
    	condenseWhite = false
    	alpha = 1
    	x = 123.05
    	width = 304.95
    	opaqueBackground = null
    	height = 19.95
    	wordWrap = false
    	textHeight = 17.95
    	__id__ = 1001
    	borderColor = 0
    	rotationX = 0
    	mouseX = 425
    	needsSoftKeyboard = false
    	selectionEndIndex = 15
    	parent{
    		__id__ = 1125
    		__ref__ = 1002
    		__clazz__ = Object
    	}
    	multiline = false
    	softKeyboardInputAreaOfInterest = null
    	textColor = 26316
    	scaleY = 1
    	styleSheet = null
    	selectedText = 
    	scrollV = 1
    	sharpness = 0
    }
    Mine:

    Code:
    			var tf:TextFormat = new TextFormat();
    			tf.size = 14;
    			tf.color = 0x373737;
    			tf.kerning = false;
    			tf.leading = 2;
    			tf.letterSpacing = 0;
    			tf.display = "block";
    			tf.align = "left";
    			tf.blockIndent = 0;
    			tf.font = "Lucida Sans Regular";
    
    			notice.multiline = false;
    			notice.type = "dynamic";
    			notice.antiAliasType = AntiAliasType.ADVANCED;
    			notice.embedFonts == true;
    			notice.defaultTextFormat = tf;
    			notice.selectable = false;
    			notice.condenseWhite = false;
    			notice.gridFitType = "pixel";
    			notice.autoSize = TextFieldAutoSize.LEFT;
    			notice.text = "Some Information Here";
    			notice.thickness = 0;
    			notice.sharpness = 0;
    I tried removing autoSize but that doesn't fix the problem.
    Last edited by Sybersnake; 08-26-2013 at 02:35 PM.
    Nothing to see here, move along.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com