Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>you can set the antiAliasType of a textfield to 'advanced', which gives you fine control over sharpness and thickness. however, the fonts must be embedded (inclusive: the textfield must have embedFonts set to true, the TextFormat objects must have font properties exactly equal to the fontName of the embedded font, and the fonts must be already compiled). so technically 'is it possible?' - yes. is it likely to work the way you want it to? no, unless you plan on working with a swiff that you know is using embedded fonts already. then you'll need to grab all the textfields from the loaded swiff (you could use something like this: <a href="http://upshots.org/?p=107" rel="noreferrer">http://upshots.org/?p=107</a>, then use array.filter to get back only TextField objects), then apply your logic.</p> <p>EDIT: adding code sample</p> <pre><code>// assuming you're using the DisplayList class linked above var request:URLRequest = new URLRequest("textfields.swf"); var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler, false, 0, true); loader.load(request); function completeHandler(event:Event):void{ var content:DisplayObjectContainer = event.target.loader.content as DisplayObjectContainer; addChild(content); var children:Array = new DisplayList(content); children = children.filter(function(item:Object, index:int, array:Array):Boolean { return item is TextField; }); children.forEach(function(item:Object, index:int, array:Array):void { var textfield:TextField = item as TextField; textfield.antiAliasType = AntiAliasType.ADVANCED; textfield.sharpness = 100; textfield.thickness = 100; }); } </code></pre> <p>just ran a quick test - works as described.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload