<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Text size &amp; zooming nightmares</title>
	<atom:link href="http://www.rogue-development.com/blog2/2008/01/text-size-zooming-nightmares/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rogue-development.com/blog2/2008/01/text-size-zooming-nightmares/</link>
	<description>Comments and thoughts on technology from Marc Hughes</description>
	<lastBuildDate>Wed, 14 Jul 2010 19:03:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: JabbyPanda</title>
		<link>http://www.rogue-development.com/blog2/2008/01/text-size-zooming-nightmares/comment-page-1/#comment-183</link>
		<dc:creator>JabbyPanda</dc:creator>
		<pubDate>Thu, 31 Jan 2008 17:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://rogue-development.com/blog2/?p=124#comment-183</guid>
		<description>Sent video to my Screencast demo privately via email to Mark.</description>
		<content:encoded><![CDATA[<p>Sent video to my Screencast demo privately via email to Mark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.rogue-development.com/blog2/2008/01/text-size-zooming-nightmares/comment-page-1/#comment-182</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Mon, 28 Jan 2008 18:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://rogue-development.com/blog2/?p=124#comment-182</guid>
		<description>Thanks for the code leef, I might end up doing something just like that.&lt;br/&gt;&lt;br/&gt;Jabby, I&#039;ve actually talked with the buzzword guys on a couple occasions in the past.&lt;br/&gt;&lt;br/&gt;One of the areas they spent a lot of time developing was a custom text layout engine.  They actually lay out every word (or maybe every character I forget the detail they work at).  Unless you&#039;re making a kick ass word processor I&#039;m betting that approach is cost prohibitive.</description>
		<content:encoded><![CDATA[<p>Thanks for the code leef, I might end up doing something just like that.</p>
<p>Jabby, I&#8217;ve actually talked with the buzzword guys on a couple occasions in the past.</p>
<p>One of the areas they spent a lot of time developing was a custom text layout engine.  They actually lay out every word (or maybe every character I forget the detail they work at).  Unless you&#8217;re making a kick ass word processor I&#8217;m betting that approach is cost prohibitive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JabbyPanda</title>
		<link>http://www.rogue-development.com/blog2/2008/01/text-size-zooming-nightmares/comment-page-1/#comment-181</link>
		<dc:creator>JabbyPanda</dc:creator>
		<pubDate>Mon, 28 Jan 2008 18:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://rogue-development.com/blog2/?p=124#comment-181</guid>
		<description>I can confirm this behavior (bug?!) happenning at my application as well.&lt;br/&gt;&lt;br/&gt;It only happens at my application when the font size is set to 10 pixels. If font size is set to 12 or more pixels, flash.text.TextField wraps the text correctly under different zoom levels. &lt;br/&gt;&lt;br/&gt;I set xScale and yScale properties for the container too to achieve different zoom levels.&lt;br/&gt;&lt;br/&gt;I will prepare a screencast for you tomorrow to illustrate my case.&lt;br/&gt;&lt;br/&gt;Meanwhile, you can approach the developers of Buzzword application and ask them how do they deal with this situation, I am interested to find the best solution too as I had found out today :()</description>
		<content:encoded><![CDATA[<p>I can confirm this behavior (bug?!) happenning at my application as well.</p>
<p>It only happens at my application when the font size is set to 10 pixels. If font size is set to 12 or more pixels, flash.text.TextField wraps the text correctly under different zoom levels. </p>
<p>I set xScale and yScale properties for the container too to achieve different zoom levels.</p>
<p>I will prepare a screencast for you tomorrow to illustrate my case.</p>
<p>Meanwhile, you can approach the developers of Buzzword application and ask them how do they deal with this situation, I am interested to find the best solution too as I had found out today <img src='http://www.rogue-development.com/blog2/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leefernandes</title>
		<link>http://www.rogue-development.com/blog2/2008/01/text-size-zooming-nightmares/comment-page-1/#comment-179</link>
		<dc:creator>leefernandes</dc:creator>
		<pubDate>Fri, 25 Jan 2008 19:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://rogue-development.com/blog2/?p=124#comment-179</guid>
		<description>That&#039;s what I did in one situation, where I needed the text alignment to be perfect with a transition.&lt;br/&gt;&lt;br/&gt;package&lt;br/&gt;{&lt;br/&gt; &lt;br/&gt;  import flash.display.Sprite;&lt;br/&gt; import flash.text.TextField;&lt;br/&gt; import flash.text.TextFormat;&lt;br/&gt; import flash.text.TextFieldAutoSize;&lt;br/&gt; import flash.text.AntiAliasType;&lt;br/&gt; import flash.display.BitmapData;&lt;br/&gt; import flash.display.Bitmap;&lt;br/&gt; import flash.text.Font;&lt;br/&gt; import FFFPhantom01;&lt;br/&gt; &lt;br/&gt; public class StringToBitmap extends Sprite&lt;br/&gt; {&lt;br/&gt;  &lt;br/&gt;  private static var _sprite:Sprite;&lt;br/&gt;  private static var _textFormat:TextFormat;&lt;br/&gt;  private static var _textField:TextField;&lt;br/&gt;  private static var _bitmapData:BitmapData;&lt;br/&gt;  private static var _bitmap:Bitmap;&lt;br/&gt;  &lt;br/&gt;  &lt;br/&gt;  public static function textFormatter():void &lt;br/&gt;  {&lt;br/&gt;   _textFormat = new TextFormat();&lt;br/&gt;   _textFormat.font = &quot;FFF Phantom 01&quot;;&lt;br/&gt;   _textFormat.size = 12;&lt;br/&gt;   _textFormat.color = 0xFFFFFF;&lt;br/&gt;  };&lt;br/&gt;  &lt;br/&gt;  public static function stringToBitmap(string:String):Bitmap&lt;br/&gt;  {&lt;br/&gt;    _sprite = new Sprite();&lt;br/&gt;    _textField = new TextField();&lt;br/&gt;    _textField.embedFonts = true;&lt;br/&gt;    _textField.antiAliasType = AntiAliasType.ADVANCED;&lt;br/&gt;    _textField.sharpness = 400;&lt;br/&gt;    _textField.thickness = -150;&lt;br/&gt;    _textField.autoSize = TextFieldAutoSize.LEFT;&lt;br/&gt;    _textField.text = string;&lt;br/&gt;    _textField.setTextFormat(_textFormat);&lt;br/&gt;    _sprite.addChild(_textField);&lt;br/&gt;    _bitmapData = new BitmapData(_sprite.width, _sprite.height, true, 0xFFFFFF);&lt;br/&gt;    _bitmapData.draw(_sprite);&lt;br/&gt;    _bitmap = new Bitmap(_bitmapData);&lt;br/&gt;    &lt;br/&gt;    return _bitmap;&lt;br/&gt;  };&lt;br/&gt;  &lt;br/&gt; &lt;br/&gt;  };&lt;br/&gt; };</description>
		<content:encoded><![CDATA[<p>That&#8217;s what I did in one situation, where I needed the text alignment to be perfect with a transition.</p>
<p>package<br />{</p>
<p>  import flash.display.Sprite;<br /> import flash.text.TextField;<br /> import flash.text.TextFormat;<br /> import flash.text.TextFieldAutoSize;<br /> import flash.text.AntiAliasType;<br /> import flash.display.BitmapData;<br /> import flash.display.Bitmap;<br /> import flash.text.Font;<br /> import FFFPhantom01;</p>
<p> public class StringToBitmap extends Sprite<br /> {</p>
<p>  private static var _sprite:Sprite;<br />  private static var _textFormat:TextFormat;<br />  private static var _textField:TextField;<br />  private static var _bitmapData:BitmapData;<br />  private static var _bitmap:Bitmap;</p>
<p>  public static function textFormatter():void <br />  {<br />   _textFormat = new TextFormat();<br />   _textFormat.font = &#8220;FFF Phantom 01&#8243;;<br />   _textFormat.size = 12;<br />   _textFormat.color = 0xFFFFFF;<br />  };</p>
<p>  public static function stringToBitmap(string:String):Bitmap<br />  {<br />    _sprite = new Sprite();<br />    _textField = new TextField();<br />    _textField.embedFonts = true;<br />    _textField.antiAliasType = AntiAliasType.ADVANCED;<br />    _textField.sharpness = 400;<br />    _textField.thickness = -150;<br />    _textField.autoSize = TextFieldAutoSize.LEFT;<br />    _textField.text = string;<br />    _textField.setTextFormat(_textFormat);<br />    _sprite.addChild(_textField);<br />    _bitmapData = new BitmapData(_sprite.width, _sprite.height, true, 0xFFFFFF);<br />    _bitmapData.draw(_sprite);<br />    _bitmap = new Bitmap(_bitmapData);</p>
<p>    return _bitmap;<br />  };</p>
<p>  };<br /> };</p>
]]></content:encoded>
	</item>
</channel>
</rss>
