flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Ferreira <miguel.cd.ferre...@hotmail.com>
Subject RE: TLF and images
Date Fri, 19 Dec 2014 10:08:21 GMT
Hi Piotr,
I am not using Air is a Web application and this blurry Font i already had on some past projects.Mainly
in a Web to print project last year where i add compiled embedded Fonts and I manage to improve
with the help of Alex but now i don't remember but even so if the user had a clinic eye they
could see the blurry.
I think this "effect" is in the SDK after TLF that by principle should be better but in my
opinion is not the case still...
@Alexso after i do this:--------------------------------------------------------------TextConverter.importToFlow(tlfXML
, TextConverter.TEXT_LAYOUT_FORMAT, TextFlow.defaultConfiguration);--------------------------------------------------------------I
cycle the elements--------------------------------------------------------------private function
loadImage():void{	if (textFlow!=null && textFlow.mxmlChildren!=null && textFlow.mxmlChildren.length>0)
	checkLogo(textFlow.mxmlChildren);}			private function checkLogo(children:Array):void	{		for
each (var element:Object in children) 		{			if (element is InlineGraphicElement)			{				(element
as InlineGraphicElement).source = img;			}							if (element.hasOwnProperty("mxmlChildren")
&& element["mxmlChildren"]!=null)					checkLogo(element["mxmlChildren"]);		}	}
--------------------------------------------------------------
I think maybe in the import is missing something like:--------------------------------------------------------------
// event sent when graphic is done loading_textFlow.addEventListener(StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGE,graphicStatusChangeEvent);--------------------------------------------------------------and
then
--------------------------------------------------------------private function graphicStatusChangeEvent(e:StatusChangeEvent):void
	{			// if the graphic has loaded update the display			// actualWidth and actualHeight are
computed from the graphic's height			if (e.status == InlineGraphicElementStatus.READY || e.status
== InlineGraphicElementStatus.SIZE_PENDING)			{				_textFlow.flowComposer.updateAllControllers();
		}		}--------------------------------------------------------------
should not this be the default behavior when we add images?
> Date: Fri, 19 Dec 2014 01:36:47 -0800
> From: piotrzarzycki21@gmail.com
> To: users@flex.apache.org
> Subject: RE: TLF and images
> 
> Hi Miguel,
> 
> Maybe your problem is related to this one [1]
> 
> [1] http://bit.ly/1Azcn6K
> 
> Piotr
> 
> 
> 
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-users.2333346.n4.nabble.com/TLF-and-images-tp9245p9264.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message